Solved

PJ2E exe problem

Posted on 2000-03-17
4
228 Views
Last Modified: 2012-06-27
even i use PJ2E exe  to change .class to exe.but it still need to run at java(jdk) installed pc.
why??
0
Comment
Question by:tmhong
  • 2
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
Ravindra76 earned 50 total points
ID: 2627802


Either JDK or JRE must be present to run
java class or exe .

Java platform independency was achieved by having different javac ( java compiler) and java(executable file) for each platform.

In case of Windows , the scene is different.

They will run if Windows Operating system was installed on system.

Java has no platform or operating system dependency.

So the java compiler will generate a class file which can be executed on different platform with different jvms.

FOr Ex:

If U go to sun site, U can know

Java for Windows

Java for Linux

Java for solaris.


depending on these java vms, the java class file which is generated platform independent will run by using particular JVM on that platform.

So java must be present on the client system where it has to be run.

0
 

Author Comment

by:tmhong
ID: 2628254
so if using J++ can create an independent exe file that can run without jdk?

thanks
0
 
LVL 7

Expert Comment

by:Ravindra76
ID: 2630634
It will run on Windows
0
 

Author Comment

by:tmhong
ID: 2630741
thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now