Jump to content
Sign in to follow this  
burger

Java program help

Recommended Posts

burger

I'm attempting to start a java program with the following line:

RunWait("C:\WINDOWS\system32\javaw.exe  -cp jts.jar;jcommon-1.0.0.jar;jfreechart-1.0.0.jar;jhall.jar;other.jar;rss.jar -Dsun.java2d.noddraw=true -Xmx256M jclient/LoginFrame C:\Jts")

It generates an error mssg box labeled Java Virtual Machine Launcher, with the following error: "Could not find the main class. Program will exit."

Any help would be appreciated. My program is located in my Desktop directory if that matters.

Share this post


Link to post
Share on other sites
LostUser

I'm attempting to start a java program with the following line:

RunWait("C:\WINDOWS\system32\javaw.exe  -cp jts.jar;jcommon-1.0.0.jar;jfreechart-1.0.0.jar;jhall.jar;other.jar;rss.jar -Dsun.java2d.noddraw=true -Xmx256M jclient/LoginFrame C:\Jts")

It generates an error mssg box labeled Java Virtual Machine Launcher, with the following error: "Could not find the main class. Program will exit."

Any help would be appreciated. My program is located in my Desktop directory if that matters.

I get the same error, however, I don't know much about Java or what you are trying to do.

Perhaps try doing that from the command line until it works.


Be open minded but not gullible.A hammer sees everything as a nail ... so don't be A tool ... be many tools.

Share this post


Link to post
Share on other sites
burger

I copied the line from a Desktop Shortcut that works fine. I'm just trying to automate the login.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×