Hi,
I have a list of binaries written in java, ada,C, python and I want to execute them.
How to do that ?
Is there any JVM binding to those languages ?
Thanks for your answers
I asked a question about Garbage Collection in Java in this topic.
But the answer I got, gave me another question.
Someone mentioned that classes can be collected by the garbage collector to.
Is this true?
And if it is true, how does this work?
Some points that make java swing layout system a nightmare:
There's thousands of properties;
Even if you learn all the properties, each layout manager ignores some properties;
The only existing good RAD tool (NetBeans) does not work well;
Layout managers behave different with components and containers inside it.
Here's an excerpt from Sun's Java tutorials:
A switch works with the byte, short, char, and int primitive data types. It also works with enumerated types (discussed in Classes and Inheritance) and a few special classes that "wrap" certain primitive types: Character, Byte, Short, and Integer (discussed in Simple Data Objects ).
There must be a good reason why the long primitive data type is not allowed. Anyone know what it is?
in java is the name of a method a string? why or why not?
so if i have something like:
public static int METHODNAME (some parameters or not)
{
something to do ;
}
is METHODNAME a string?
I need to capture portion of user screen usign java applet. It is easy to do using Robot class but I'd like user to select which portion of screen to capture in draggy-droppy way.
So I need to draw rectangular frame over users desktop and response when user resizes it.
How could I do it? Thnx.
Hi All,
How can I measure the speed of code written in Java?
I planning to develop software which will solve Sudoku using all presently available AI and ML algorithms and compare time against simple brute-force method. I need to measure time of each algorithm, I would like to ask for suggestions on what is the best way of doing that? Very important, program must be useful on any machine regardless to CPU power/memory.
Thank you.
I'm designing a web application.
I was wondering if it was feasible to design a php front end (using some php framework e.g. CakePHP), which stores and retrieves data to display to the user.
Then develop a java backend which listens to the database for changes, and depending on what was changed, performs some actions and updates the database.
Any thoughts on this type of implementation would be appreciated.
In Java, the wrapper class Integer has the static method parseInt() which is used like this: Integer.parseInt(). I thought only methods of static classes could be called like this (ie. Class.doMethod()). All non-static classes need objects to be instantiated to use their methods. I checked the API, and apparently Integer is declared as public final Integer - not static. Someone please help me understand this.
Hi All,
I was just wondering if anyone knew whether the Java Native Access API will locally save the native libraries into a temporary location before or when loading and using native libraries?
here's my problem: I have multiple classes that are part of the same package and they need access to a certain file path
String filePath = "D:/Users/Mine/School/Java/CZ2002_Assignment/src/"
Rather than declaring the same Filepath in every single class, is it possible to simply have a "global" type of variable of this FilePath so that all classes can access it and I only need to declare and update it once.
Thanks
When I learned Java, I was told that the arraylist works this way:
It creates an array with room for 10 elements.
When the 11th element is added, it is created a new list with room for 20 elements, and the 10 elements are copied into the new array. This will repeat as until there are no more elements to add, or to a maximum size.
Is the List in .NET constructed the same way?
Hi,
Today I got this question for which I think I answered very bad. I said stream is a data that flows and reader is a technique where we read from that is a static data. I know this is an awful answer, so please provide me the crisp difference and definitions between these two with example in Java.
Thanks.
what java method takes an int and returns +1 or -1? the criteria for this is weather or not the int is positive or negative. I looked through the documentation but i'm bad at reading it and i can't find it. I know i've seen it somewhere though.
Is there a way to delete unused indexes in Google App Engine Java application?
The only one way I was able to find is to create an empty Python GAE application and run the following command:
appcfg.py vacuum_indexes /path/to/myapp/
Is there a more intelligent way?
Why are there not more opensource easy to use charting libraries for Java?. The only successful opensource project in this area seems to be jfreechart, and it doesn't even have any documentation or examples available.
My multithreaded Java program crashes because it runs out of heap space and I don't think it should. Assuming the culprit is unintentional object retention, what's a good free tool to investigate what objects are being unintentionally retained?
My IDE is Eclipse.
Have a Map which contains objects that I want to keep in sync across multiple servers, such that if objects in the map are created, deleted, or modified - this is reflected immediately (ie. within a second or two) across all servers, in a way that can potentially scale up to tens of servers.
Is there a lightweight open source Java tool that can do something like this? I'm aware of Terracotta but it is rather heavy weight for what I need.
I would like to add the ability for users to telnet into my app where by they can type in commands etc. I would like a simple Java Telnet server whereby i can provide the authentication strategy.
I have a grails app (v 1.1.2) the logging is working fine from the groovy classes, but I can't get it to work from within a java source...
I have a class in package com.mforms.devices., it imports apache log4j, defines the logger as follows
private final org.apache.log4j.Logger loggy = Logger.getLogger(this.getClass());
then refer to it later by doing loggy.error("...")
my Config.groovy has the following
log4j = {
error 'com.mforms'
root {
error 'stdout', 'file'
additivity = true
}
}
What am I doing wrong?!?!
Hi Folks,
I created an java apllication. i created the Excecutable jar and Exe files for my application. But it cant be run at a system which not installed computer. How to do it? Is there any possible to configure the JRE in the EXEcutable jar or Exe file itself? Any Idea?
Is there a default timeout for threads waiting on a synchronised method in Java? Some threads in my app are not completing as expected. Is there anyway to check whether threads have died as a result of timeouts?
I have two pieces of text. I would like to make a word-based diff between them (like whe unix utility wdiff does) but with more information in the output (I mean, the character's posizion where the added/delited word starts).
I need to do this in Java, so a simple output of the differences (like wdiff) doesn't suite for me: I would like to manipulate objects representing differences.