applet and server

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Giuggiola
Posts: 1
Joined: 05 Jun 2013 02:33

applet and server

#1 Post by Giuggiola » 05 Jun 2013 02:47

What is the instruction to perform server and applet from the same batch file?
The server starts with instruction:
java-cp namearchive.jar package.of.class.NameClass
The applet executes it with instruction:
appletviewer Applet.java
started separately but do not work, is a problem of directory?
The project initiated by Eclipse works well, but from the batch file not.
Thank you.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: applet and server

#2 Post by foxidrive » 05 Jun 2013 13:42

If you type the commands at a cmd prompt, does it work?

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: applet and server

#3 Post by Ed Dyreen » 07 Jun 2013 13:41

foxidrive wrote:If you type the commands at a cmd prompt, does it work?
Does the JAVA_HOME system variable point to where java is installed ?

example:

Code: Select all

JAVA_HOME = C:\Program Files\Java\jdk1.6.0_04
verify with:

Code: Select all

set

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: applet and server

#4 Post by foxidrive » 08 Jun 2013 03:09

Ed Dyreen wrote:

Code: Select all

JAVA_HOME = C:\Program Files\Java\jdk1.6.0_04
verify with:

Code: Select all

set



I think there are some spaces there that should be removed, Ed.

Post Reply