PJ2E exe problem

even i use PJ2E exe  to change .class to exe.but it still need to run at java(jdk) installed pc.
why??
tmhongAsked:
Who is Participating?
 
Ravindra76Connect With a Mentor Commented:


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
 
tmhongAuthor Commented:
so if using J++ can create an independent exe file that can run without jdk?

thanks
0
 
Ravindra76Commented:
It will run on Windows
0
 
tmhongAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.