Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JAR files 2

Status
Not open for further replies.

Swi

Programmer
Feb 4, 2002
1,966
US
A previous employee has written some applications that seem to run fine on other user's machines. On mine however they open but when executed they do not run properly and are still in memory when I check Task Manager. Any ideas? Thanks.

Swi
 
Can you define "do not run properly"? Are there error messages? Do you have the source code?
 
You haven't provided any information which is useful to trace the problem. If the program runs on other user machines, why doesn't it run on yours? What is different on your PC that stops the program from running "properly"? Are you for example using a different Java runtime than the other users (or another OS)? What error messages to you get (if any) when you run the program? Have you tried to reinstall the program? Do you have the source code?
 
I do not know much about JAVA. I am thinking it is a runtime issue. I am running 1.6.0 and everyone else is running 1.5.0. Can I downgrade to 1.5.0? If so, how? Thanks.

Swi
 
I double click on the JAR file to open the application. When I click the execute menu option it just disappears. The app does not seem to have any error handling whatsoever. The source code is not avaiable. I am going to rewrite these apps as time permits but right now that is not an option as I am swamped with other projects. The only difference I can see between my computer and everyone else's is the version of JAVA that we are running.

Swi
 
Try desinstalling it and installing an older version. If that's enought for your needs now, you won't need further investigation.

Cheers,
Dian
 
Of course, if your OS is linux, it will be
Code:
java -jar /path/to/jarfile.jar
and another way (hundrets) to open a shell.

I've never seen a program which ran on 1.5 but didn't on 1.6.
Missing libraries, configfiles, or different environment in general are much more probable to be the reason.

don't visit my homepage:
 
I will give it a shot. Thanks.

Swi
 
Installing an older version of JAVA allowed me to run a few of the applications successfully. Although, so of the programs still do not work even with this modification. The apps open but when executed they just disappear from the screen and do not provide any error information.

Swi
 
Maybe they use broken MS-J++ which was told from MS to be a Java, but was incompatible by intention?

What does
Code:
 java -version
tell you on the machines where it works - on the machine it doesn't?

Maybe you may contact the previous employe somehow.

don't visit my homepage:
 
I will give that a shot. I did not know this previous employee and from what I understand he did some of this on purpose is what I was told. He even put code in some of the apps that says that it expired and to contact him even though he supposedly wrote all code on company time and on company equipment. I will just re-write the apps in VB if I can not resolve this. Thanks for all of the help.

Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top