Runtime error

JC0133

Senior member
Nov 2, 2010
201
1
76
Ok sooo I am really confused here. I am taking a Java programming class and I have eclipse installed on my desktop which is what I use to write my code. And everything works smoothly there.

I just recently bought a laptop and I installed eclipse on there. Now I copy over some of my old code and at runtime everything crashes.

Now I have noticed a few differences. The eclipse I have on my desktop in the package explorer has JRE System Library [jdk7] and the paths are C:\glassfish\jdk7\jre\lib\ext

on my laptop it is JRE System Library[JavaSE-1.6] and the path is C:\Program Files\Java\jre\lib
but glassfish is installed on my laptop so I am trying to understand why eclipse is pulling the libs from a different path.

Also can this cause a runtime error with my code??
 

Cogman

Lifer
Sep 19, 2000
10,286
147
106
Looks like you don't have the jdk on your system and the program is failing because of it. Try re installing the jdk. (or if this is meant as a test, try running the app without an sort of development environment).
 

beginner99

Diamond Member
Jun 2, 2009
5,320
1,768
136
For developing you need a Java Development Kit called JDK.

If you only want to run java appkications you are good with a Java Runtime Environment called JRE.

As said you need to install a JDK on your laptop to actually use and develop with eclipse.

Beside that java version does matter and if you create somethign in java 7 it will only run in a java 7 capable runtime.
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
For developing you need a Java Development Kit called JDK.

If you only want to run java appkications you are good with a Java Runtime Environment called JRE.

As said you need to install a JDK on your laptop to actually use and develop with eclipse.

Beside that java version does matter and if you create somethign in java 7 it will only run in a java 7 capable runtime.

And since Java 7 isn't widespread yet, you probably still use Java 6.