Skip to main content

Running -server on Desktop

10 replies [Last post]
ateslin
Offline
Joined: 2005-11-04
Points: 0

Hi,
I know this particular question is for general desktop discussion, but on that thread no one is replying for days and also i need -server mode for performance testings.

Currently i have J2SE jdk1.5.0_05 version on my machine, which is on i586 architecture. When i try to run -server mode it can not find on a path. Now i am thinking of downloading either J2EE 1.4 sdk or JAVA EE5.

Would any of those would allow me to run either client or server modes? Also, i think there is some problem with download links on sun site. When i press download it takes to the 'Fatal error' page.

Thank you for your suggestions.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tmarble
Offline
Joined: 2003-08-22
Points: 0

One way to be sure the "right" thing is in your
path is to (on Win2k and later) change the
PATH environment variable to include the
bin directory of the JDK (before the JRE).

Otherwise you will need to insure that the
java is launched with the fully qualified
path (quotes to handles spaces) to the JDK.

HTH,

--Tom

ateslin
Offline
Joined: 2005-11-04
Points: 0

How would i do that?
Does not this PATH [C:\Program Files\Java\jdk1.5.0_05\bin]
bin directory is of jdk?

ateslin
Offline
Joined: 2005-11-04
Points: 0

I have found two folders in jre\bin file. Client and Server. In the Server folder it is a file jvm.dll and one readme file.
Is it because of this? That's where it looks according to the error message.

Now, should i move them, Client and Server folders, to jdk\bin folder or they are in the right folder?
If need to move, will it be better to download again my jdk?

Thank you

k_v_n
Offline
Joined: 2006-03-01
Points: 0
sdo
Offline
Joined: 2005-05-23
Points: 0

The J2EE 1.4 SDK and the Java EE5 SDK are for running Java EE (Enterprise Edition) applications -- they are application servers that support servlets, JSPs, EJBs, and so on.

It sounds like that's not what you want -- I'd guess that you want the Java SE (Standard Edition) JDK. That comes with both the -server and -client compiler. [Yes, there is some unfortuantely name overloading there.]

Java SE comes packaged as a JRE (only the -client compiler) and the JDK (the -client and -server compilers, plus some other things for developing apps) -- so make sure that you get the JDK.

linuxhippy
Offline
Joined: 2004-01-07
Points: 0

Generally speaking the "JRE" packages don't include the server-jvm whereas "jdk" packages do.

I think this is stupid since its totally counterintuitive, if they would package a seperate java-server-jvm jdk or something like that people would at least see it in the package name.

lg Clemens

ateslin
Offline
Joined: 2005-11-04
Points: 0

If i download J2EE1.4 SDK, would i be able to run client and server modes?

ateslin
Offline
Joined: 2005-11-04
Points: 0

Yes, you are right, i am trying to run only client and server modes on my desktop and i don't need J2EE but I have already J2SE jdk1.5.
I am confused now, if i don't need J2EE for it why i can not run -server mode?

sdo
Offline
Joined: 2005-05-23
Points: 0

Either you have the Java 5 SE *JRE* 1.5, or your Java 5 SE 1.5 JDK installation is corrupted. Go download the JDK and try again.

It also occurs to me that it could be an issue with your PATH. Make sure that your path points to the JDK installation (typically, C:\Program Files\Java\jdk1.5.0\bin) and not the JRE installation.

ateslin
Offline
Joined: 2005-11-04
Points: 0

My system PATH is: C:\Program Files\Java\jdk1.5.0_05\bin
When i compile or run i don't specify my full Path, so seems to be working. But when i give -server option it searches in C:\Program Files\Java\jre

Is this is a normal behaviour?