jvm

Young , Tenured and Perm generation

I'm confused with Heap,Young,Tenured and Perm generation. Could anyone please explain? ...

main function does not return anything. Why?

Hi, With respect to C/C++ main() must always return an integer(zero to indicate success and non-zero to indicate failure). I can understand this as the program is run it becomes a process and every process should have an exit status, which we obtain by doing echo $? from shell after the process gets over. Now I don't understand why is...

Eclipse IDE fail to launch with JVM Terminated. Exit code=-1

Hello everyone. I was having an issue with Eclipse IDE failing to launch with following error message: "JVM Terminated. Exit code=-1" After some googling, I've semi-unintentionally found the solution and was able to get the IDE to launch correctly. What I did was to set -Xmx JVM argument in eclipse.ini to a value that is lower than th...

What is the difference amongst JVM Spec, JVM Implementation, JVM Runtime

Hi I read the following words but I like to know differences among them... JVM Spec, JVM Implementation, JVM Runtime ...

What is max heap size I can allocate for JVM on Win32 machine ?

I have BEA JRockit JDK 5.0 Update 6 running on Windows XP. I wish to know what is the max heap I can allocate when I have primary memory of 4GB on my machine. ...

Why is the maximum size of the Java heap fixed?

It is not possible to increase the maximum size of Java's heap after the VM has started. What are the technical reasons for this? Do the garbage collection algorithms depend on having a fixed amount of memory to work with? Or is it for security reasons, to prevent a Java application from DOS'ing other applications on the system by con...

Non-line dependent conditional breakpoints

Is it possible to set a breakpoint so that the program stops executing after an instruction has made certain condition true? A class has a variable named currency and I want to make a breakpoint to make the program stop at any line after currency == 20. I do not know the line number where currency is changed, so this would be like putti...

does java -server flag makes any sense?

Hello guys, I think everyone is aware of -server command line JVM parameter. Does it make any sense while running Java application as Server?? I read that it does some more optimizations, and because of that, some of your Java code can behave differently like boolean flag=true; while(flag) { if(checkMethod()) { flag=fa...

Why not JVM is platform is independent? When java is platform independent?

Hi Just curious to know when java is made platform independent then are there any specific reasons JVM is made platform dependent.. ...

Java stack overflow error - how to increase the stack size in Eclipse?

I am running a program that I've written in Java in Eclipse. The program has a very deep level of recursion for very large inputs. For smaller inputs the program runs fine however when large inputs are given, I get the following error: Exception in thread "main" java.lang.StackOverflowError Can this be solved by increasing the Java st...

Java heap terminology: young, old and permanent generations?

I'm trying to understand how the concepts of young, old and permanent generations in the Java heap terminology, and more specifically the interactions between the three generations. My questions are: What is the young generation? What is the old generation? What is the permanent generation? How does the three generations interact/rela...

Java user.home is being set to %userprofile% and not being resolved

Our company recently upgraded from Windows XP to Windows 7 Enterprise. The JDK installation is no longer setting user.home to the full path of the user directory, but instead is setting user.home to %userprofile%. This is causing a lot of issues with applications such as eclipse, maven, etc. I now have to set -Duser.home in the JVM for e...

Binding JVM to An IP Other than Default

I have a multihomed system with multiple NICs and IPs. I am not %100 sure how my Sun JVM chooses the IP representing 'this' system (that's the "source IP" when connecting to another system using Socket or URLConnection). Does it pick the system default NIC, or perhaps it does a reverse lookup on the system's name? etc. In any case, is ...

Installation of IBM RAD 7.5 fails with JVM crash

I am trying to install IBM RAD, while installation, I am getting this error - JVM terminated exit code=8096 And the installation stops. Is there any way to rectify this problem? Why Does JVM terminates? I verified that this is the jre from IBM which is crashing. ...

Interpreting a JVM Class cast exception error message - what is the original type that can't be casted

I have a Java production system with IBM JVM running on Linux. A customer reports the following exception printed to the log: java.lang.ClassCastException: [B incompatible with java.lang.String When trying to cast the individual attributes returned from: javax.naming.directory.InitialDirContext(...) From this exception I can't figure ou...

Can Ant launch two java applications concurrently

Hello everyone, I am currently developing a "debugger" java application that uses JDI to connect to an already running "target" java application. Is there anyway to have ant launch my target application then launch my "debugger" afterwards while the first application is still running? Yes I know that I can develop the JDI app to launch...

Java -classpath option

Will the use of -classpath option with java, add to or replace the contents of the CLASSPATH env variable? ...

What is a good VM for developing a hobby language?

I'm thinking about writing my own little language. I found a few options, but feel free to suggest more. JVM Parrot OSA A lot of languages are using the JVM, but unless you write a Java-ish language, all the power the stdlib gives you is going to feel ugly; It's not very good at dynamic stuff either. Parrot seems a good VM for deve...

What is the cause of JVM exit code 1073807364?

I've built a RCP-based application, and one of my users running on Windows XP, Sun JVM 1.6.0_12 had a full application crash. After the app was running for two days (and this is not a new version or anything), he got the nice gray JVM force exit box, with exit code=1073807364. He was away from the machine at the time, and the only thin...

List of Clojure Compatible Java Virtual Machines.

A community wiki to vote up for "i have used this jvm with clojure without problems" down "i have used this jvm with clojure and had problems" Specifying the problems in the comments will help others to tell if the risk applies to them. ...