Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Error : Can not find or load main class

2708082Jul 7 2014 — edited Jul 10 2014

Hi,

I'm an IT tech France.

One of my customers couldn't get an jar launched, so I maid a couple of tests, and the situation is pretty weird. I hope to find a java guru that will be able to, at least, point in a good direction.

he's the issue :

The app is called "Cisco ASDM Launcher", it's composed of a few JAR files, and is launched with a desktop shortcut.

The shortcut is set to launch the following line:

C:\Windows\System32\javaw.exe -Xms64m -Xmx512m -Dsun.swing.enableImprovedDragGesture=true -classpath lzma.jar;jploader.jar;asdm-launcher.jar;retroweaver-rt-2.0.jar com.cisco.launcher.Launcher

The working directory is set to the apps installation folder, where the JAR files reside (lzma.jar;jploader.jar;asdm-launcher.jar;retroweaver-rt-2.0.jar).

So what I understand is that the jar files should be dinamicly added to the classpath and then the com.cisco.launcher.Launcher class should run.

If I start the shortcut on my PC, the application starts like a charm.

If I start the application on my customers PC, i get an "Error: could not find or load main class com.cisco.launcher.Launcher".

The two PCs have the same hw, same OS, same update level.

Same JRE (1.7_60)

The only diffrence between them is that the first (working) is a windows fresh install, and the second (error: can not find ..) is a restored master image, on wich the default user profile has been modified.

So here's my question : is there any user profile related file/setting/regkey that could cause the above error ?

Thanks for any help.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2014
Added on Jul 7 2014
2 comments
2,091 views