Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Java Jar issue.

Avatar of ram_0218
ram_0218Flag for United States of America asked on
18 Comments1 Solution393 ViewsLast Modified:
I hate to ask this question but I wasted too much of a time on this one. I mean from morning I'm trying to work it out.

I've a jar file xyz.jar which has a swing application in it. the person who wrote the code he hardcoded the ip address of the oracle machine/what i did is i used jad to extract the java file out of this jar and replaced the ip and created the jar again. so far so good.

but my modified class does not effect in the outcome if i execute it.

secondly, its weird but i know i screwed my desktop. i wrote a batch script which invokes the jar file with javaw command / if i click on jar file directly it opens up the swing application but if i click the script file it says unable to find main class. question here is: when i open jar it knows the main class but when i call it using javaw it struggles to find the main class. whats the reason here?

Thanks for all your time -
Avatar of tbboyett
tbboyettFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 18 Comments.
See Answers