473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

'JAVA' and 'JAVAW' on Windows XP standard VM?

PC
It's obvious, that Windows XP has a Java 2 VM (including the SWING-module),
because we can all run Java 2 applets in Internet Explorer. But what about
the support for Java 2 Applications?

I would just like to run an application packed in a JAR-file on Windows XP:
JavaProg.jar (Java Archive Resource). But without installing a SDK, i don't
have an association of the JAR-file to be started with JAVAW, or the JAVA
command to use 'java -jar JavaProg.jar'. I know that the Java 2 VM on
Windows XP can run applets from a JAR-file with the archive="JavaProg.jar"
attribute in the <APPLET> tag. So it is obvious that the VM can run Java 2
programs from JAR-files.

If I would like to send my JavaProg.jar to a friend of mine, who is using
Windows XP, what should I tell him to do? With a normal Windows XP setup,
he does not have the JAVA-command or the JAR-file association to JAVAW,
as I have with my SDK installed. Wouldn't he be able to run my application
with the VM from the Windows XP installation, or would he really have to
download a really BIG file with a new VM first? I guess that there MUST
be a full Java 2 VMto both applets and applications with Windows XP. But
what should we do to run this JAR-application on it?

We need the JAR-file association, or the JAVA-command to run the program
from the command-prompt. Maybe it is very obvious how to do this, but I have
no idea of what to change or what to install!

On the other hand, if we have what we need to run an application from a
JAR-file, why isn't there made some association to JAR-files as a standard
on Windows XP? -Or maybe it is just my setup, there is something wrong with?

I would probably not be able to make my friend run my Java-Program, if he
would have to download some of these very BIG files with new Virtual
Machines from Sun or MicroSoft first. It's many MB, and it takes several
hours on a modem-connection to Internet.

How do we configure this standard VM to run the application? -Or isn't it
possible at all without installing extra software first?

Would be really glad, if someone had a simple solution on this problem.

/PC
Jul 17 '05 #1
11 12225
Dog
Well, the target PC must have the JRE installed for it to run java apps.
Once it is installed (the JRE is +/- 10 Megs), the path must be setup so
that the commands are recognized.
Jul 17 '05 #2
R
"PC" <Pe**************@lycos.com> a écrit dans le message de
news:c1**************************@posting.google.c om...
If I would like to send my JavaProg.jar to a friend of mine, who is using
Windows XP, what should I tell him to do? With a normal Windows XP setup,
he does not have the JAVA-command or the JAR-file association to JAVAW,
as I have with my SDK installed. Wouldn't he be able to run my application
with the VM from the Windows XP installation, or would he really have to
download a really BIG file with a new VM first? I guess that there MUST
be a full Java 2 VMto both applets and applications with Windows XP. But
what should we do to run this JAR-application on it?


Use JSmooth. It creates a .exe from your .jar, which will take care of
finding and running the adequate JVM on your friend's computer.
It's available on http://jsmooth.sourceforge.net
Jul 17 '05 #3
Thanks for the link. It's working fine, and the EXE-file from JSmooth
has a reasonable size. I guess that JSmooth will always be able to
find a Java 2 VM on Windows XP.

/PC

"R" <R@charabia.net> wrote in message news:<bk**********@news-reader1.wanadoo.fr>...
"PC" <Pe**************@lycos.com> a écrit dans le message de
news:c1**************************@posting.google.c om...
If I would like to send my JavaProg.jar to a friend of mine, who is using
Windows XP, what should I tell him to do? With a normal Windows XP setup,
he does not have the JAVA-command or the JAR-file association to JAVAW,
as I have with my SDK installed. Wouldn't he be able to run my application
with the VM from the Windows XP installation, or would he really have to
download a really BIG file with a new VM first? I guess that there MUST
be a full Java 2 VMto both applets and applications with Windows XP. But
what should we do to run this JAR-application on it?


Use JSmooth. It creates a .exe from your .jar, which will take care of
finding and running the adequate JVM on your friend's computer.
It's available on http://jsmooth.sourceforge.net

Jul 17 '05 #4
R
"Peter Christensen" <Pe**************@lycos.com> a écrit dans le message de
news:c1**************************@posting.google.c om...
Thanks for the link. It's working fine, and the EXE-file from JSmooth
has a reasonable size. I guess that JSmooth will always be able to
find a Java 2 VM on Windows XP.


No, indeed. The first version of Windows XP was released without any JVM
inside. Later on, Microsoft started to bundle their JView runtime with XP.
However, AFAIK, JView is only a 1.1.4 JVM. Which means any version above
won't work, and swing, of course, is not supported.

If you have tried JSmooth on your own computer, it probably detected a Sun
JVM installed somewhere. On a clean Windows XP installation, it will display
an alert and propose the user to download a JVM.
Jul 17 '05 #5
"R" <R@charabia.net> wrote in message news:<bk**********@news-reader2.wanadoo.fr>...
"Peter Christensen" <Pe**************@lycos.com> a écrit dans le message de
news:c1**************************@posting.google.c om...
Thanks for the link. It's working fine, and the EXE-file from JSmooth
has a reasonable size. I guess that JSmooth will always be able to
find a Java 2 VM on Windows XP.


No, indeed. The first version of Windows XP was released without any JVM
inside. Later on, Microsoft started to bundle their JView runtime with XP.
However, AFAIK, JView is only a 1.1.4 JVM. Which means any version above
won't work, and swing, of course, is not supported.

If you have tried JSmooth on your own computer, it probably detected a Sun
JVM installed somewhere. On a clean Windows XP installation, it will display
an alert and propose the user to download a JVM.


Yes, it detected the 1.4.1 JVM from my 'Sun ONE Starter Kit (06/03)'
CD-ROM set. -Slightly a bit lower than the 1.4.2 that can be
downloaded from Sun's site today. I'm surpriced that Win XP can ONLY
run 1.1.4 without the javax.swing packages and all the other from Java
2.

I guess that it is a security rather than a technical issue. We also
have a lot of dialogs and file-operations in Swing and JFC. Maybe to
easy to trick a common user to start something, that could be infected
with virus or something like this.

/PC

-Another thing, that is also quite surprising to me, is that mt ISP
doesn't even support the Microsoft.public.* groups, so that I have to
use GGC (Groups.Google.Com) to read/write groups like
'microsoft.public.windows', 'microsoft.public.java' or
'microsoft.public.xbox'. The ISP (in DK/Denmark) has more that 30.000
groups, and obviously much of this is completely useless junk! -I
thought that Microsoft Windows/XBox and Java (2) was among the most
common subjects in the 'COMP' world. -But nothing about XP/XB or MS
Java from my ISP! ?:->)
Jul 17 '05 #6
hi there
ye your friend needs JavaRuntimEnvironment (JRE) installed on his
comp.
JRE was designed for end users & JSDK was designed for developers.
i wrote a small program in C based on some online tutorial which you
can associate with .class file & on double clickin any .class file it
would invoke java with that .class file
currently i did not provide for other command line arguments
but if you want i can mail you the current version.
(requires java.exe to be present in directory PATH variable holds)

it was really annoying to write a program & invoke through command
prompt(when you dont have IDE available) so i found this tut online n
wrote it.

now ill try to improve it by recognizing .jar files & invoking
accordingly

regards
amey
On the other hand, if we have what we need to run an application from a
JAR-file, why isn't there made some association to JAR-files as a standard
on Windows XP? -Or maybe it is just my setup, there is something wrong with?

Would be really glad, if someone had a simple solution on this problem.

/PC

Jul 17 '05 #7
R
"Peter Christensen" <Pe**************@lycos.com> a écrit dans le message de
news:c1**************************@posting.google.c om...
downloaded from Sun's site today. I'm surpriced that Win XP can ONLY
run 1.1.4 without the javax.swing packages and all the other from Java
2.
I guess that it is a security rather than a technical issue. We also


This is neither a security nor a technical issue. This is a political issue.
Microsoft decided not to support anymore Java, and even removed it from XP.
After a lawsuit from Sun's, they finally added their JView, but it's only a
1.1.4 vm.

However, your desktop vendor may have bundled a J2SE JRE with your computer,
for instance HP and Dell support java and include a JRE by default. Most of
the windows user though still need to download a java vm in order to run
j2se applications.
Jul 17 '05 #8
am*****@yahoo.com (Amey Samant) wrote in message news:<66**************************@posting.google. com>...
hi there
ye your friend needs JavaRuntimEnvironment (JRE) installed on his
comp.
JRE was designed for end users & JSDK was designed for developers.
i wrote a small program in C based on some online tutorial which you
can associate with .class file & on double clickin any .class file it
would invoke java with that .class file
currently i did not provide for other command line arguments
but if you want i can mail you the current version.
(requires java.exe to be present in directory PATH variable holds)
Thanks, but it would not solve the problem with no J2VM on Windows XP.
I thought that there was, but that there was something to configure
first before it could be used.

Regards,

PC
it was really annoying to write a program & invoke through command
prompt(when you dont have IDE available) so i found this tut online n
wrote it.

now ill try to improve it by recognizing .jar files & invoking
accordingly
Sounds interesting. Could be something like JAVAW.exe from the SDK. -I
must admit that I'm not sure about it, but I think that the SDK from
MS should also have the JAVAW.exe command. -And that it should
automaticaly be associated with JAR-files when the SDK is installed. I
think that I used it a few years ago with a MS J++ SDK and a trial
copy of Visual Studio. But I could have mixed it somehow with the
setup from another SDK from Sun.

regards
amey
On the other hand, if we have what we need to run an application from a
JAR-file, why isn't there made some association to JAR-files as a standard
on Windows XP? -Or maybe it is just my setup, there is something wrong with?

Would be really glad, if someone had a simple solution on this problem.

/PC

Jul 17 '05 #9
Hi everyone!

Maybe you can find what you need at this site: http://www.virtualmachine.tk

Staffan

"Peter Christensen" <Pe**************@lycos.com> skrev i meddelandet
news:c1**************************@posting.google.c om...
am*****@yahoo.com (Amey Samant) wrote in message

news:<66**************************@posting.google. com>...
hi there
ye your friend needs JavaRuntimEnvironment (JRE) installed on his
comp.
JRE was designed for end users & JSDK was designed for developers.
i wrote a small program in C based on some online tutorial which you
can associate with .class file & on double clickin any .class file it
would invoke java with that .class file
currently i did not provide for other command line arguments
but if you want i can mail you the current version.
(requires java.exe to be present in directory PATH variable holds)


Thanks, but it would not solve the problem with no J2VM on Windows XP.
I thought that there was, but that there was something to configure
first before it could be used.

Regards,

PC
it was really annoying to write a program & invoke through command
prompt(when you dont have IDE available) so i found this tut online n
wrote it.

now ill try to improve it by recognizing .jar files & invoking
accordingly


Sounds interesting. Could be something like JAVAW.exe from the SDK. -I
must admit that I'm not sure about it, but I think that the SDK from
MS should also have the JAVAW.exe command. -And that it should
automaticaly be associated with JAR-files when the SDK is installed. I
think that I used it a few years ago with a MS J++ SDK and a trial
copy of Visual Studio. But I could have mixed it somehow with the
setup from another SDK from Sun.

regards
amey
On the other hand, if we have what we need to run an application from a JAR-file, why isn't there made some association to JAR-files as a standard on Windows XP? -Or maybe it is just my setup, there is something wrong with?
Would be really glad, if someone had a simple solution on this problem.
/PC

Jul 17 '05 #10
Thanks.

I must admit, that I didn't know that there was this conflict between
Sun MicroSystems and MicroSoft, when I started this thread about
JAVA.exe and JAVAW.exe. I now know, that the whole J2RE is 'missing'
on Windows XP and that the only thing we have is an 'older' version of
Java under the command JView.

My user must update his VM to Java 2 first, else he can't run Java 2
programs on Windows XP. We do not have jawax.swing with Win XP, but
there is another package called Windows Foundations Classes (WFC) in
com.ms.WFC and so on...

It's not a big problem for me, as I'm not working and any major
program or something commmersial at all. I'm just studying the Java
language and working on my own programs. -And I can just let the
friend have the VM from one of my CD-ROMS. That's no problem.

But I could imagine, that somebody making programs with Java 2 in a
more professional or commersial way, could be very dissapointed about
this problem!

/PC

"Staffan Wrange" <sw*****@telia.com> wrote in message news:<z6*******************@newsb.telia.net>...
Hi everyone!

Maybe you can find what you need at this site: http://www.virtualmachine.tk

Staffan

"Peter Christensen" <Pe**************@lycos.com> skrev i meddelandet
news:c1**************************@posting.google.c om...
am*****@yahoo.com (Amey Samant) wrote in message

news:<66**************************@posting.google. com>...
hi there
ye your friend needs JavaRuntimEnvironment (JRE) installed on his
comp.
JRE was designed for end users & JSDK was designed for developers.
i wrote a small program in C based on some online tutorial which you
can associate with .class file & on double clickin any .class file it
would invoke java with that .class file
currently i did not provide for other command line arguments
but if you want i can mail you the current version.
(requires java.exe to be present in directory PATH variable holds)


Thanks, but it would not solve the problem with no J2VM on Windows XP.
I thought that there was, but that there was something to configure
first before it could be used.

Regards,

PC
it was really annoying to write a program & invoke through command
prompt(when you dont have IDE available) so i found this tut online n
wrote it.

now ill try to improve it by recognizing .jar files & invoking
accordingly


Sounds interesting. Could be something like JAVAW.exe from the SDK. -I
must admit that I'm not sure about it, but I think that the SDK from
MS should also have the JAVAW.exe command. -And that it should
automaticaly be associated with JAR-files when the SDK is installed. I
think that I used it a few years ago with a MS J++ SDK and a trial
copy of Visual Studio. But I could have mixed it somehow with the
setup from another SDK from Sun.

regards
amey

> On the other hand, if we have what we need to run an application from a > JAR-file, why isn't there made some association to JAR-files as a standard > on Windows XP? -Or maybe it is just my setup, there is something wrong with? >
> Would be really glad, if someone had a simple solution on this problem. >
> /PC

Jul 17 '05 #11
"R" <R@charabia.net> wrote in message news:<bk**********@news-reader4.wanadoo.fr>...
"Peter Christensen" <Pe**************@lycos.com> a écrit dans le message de
news:c1**************************@posting.google.c om...
downloaded from Sun's site today. I'm surpriced that Win XP can ONLY
run 1.1.4 without the javax.swing packages and all the other from Java
2.
I guess that it is a security rather than a technical issue. We also
This is neither a security nor a technical issue. This is a political issue.
Microsoft decided not to support anymore Java, and even removed it from XP.
After a lawsuit from Sun's, they finally added their JView, but it's only a
1.1.4 vm.


I understand. There is probably a very BIG interest for MicroSoft to
have their own Java on Windows XP. Many J++ programs can only be run
on Windows-XP-Java and other Java 2 programs need an additional
software package (from MS) to run under Windows. Probably there is
very much to earn this way.

I found some other JAR -> EXE conversion programs, for example from
XLSoft.com and Exe4J.com. I would need something like these Java (2)
-> Windows (XP) products to make my program run under Windows XP.
-Otherwise I would have to use MicroSofts Visual J++ instead of my SDK
from SUN. -But i haven't seen a SDK from MS. I was looking on MSDN
under J++ yesterday, and I couldn't find any SDK. -I know, that I had
a SDK from MS a few years ago!

But maybe there is no free SDK available anymore?
However, your desktop vendor may have bundled a J2SE JRE with your computer,
for instance HP and Dell support java and include a JRE by default. Most of
the windows user though still need to download a java vm in order to run
j2se applications.


I will use the solution like JSmooth. I will continue with my Java 2,
and then use the Windows XP version of the J2RE from Sun as a
platform. My user must just download the J2VM from www.Java.com or
by/have it on a CD-ROM.

Or maybe one could go down to Jviews 1.1.4 Java for some applications.
-And then work without javax.swing and all the other J2 features. I
don't know if I can make the 1.4.1 compiler from SUN make Java 1.1
output suitable for JView.

I guess that many must have these problems.
Jul 17 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Keld Hammerum | last post by:
Hi, I am verifying a large DSP algorithm using JBuilder 7 and Windows 2000 Professional. The result of my test depends on the way I run the program, though. Here is the situation: a) I run...
13
by: BlackHawke | last post by:
Our program, game program Andromeda Online (www.andromedaonline.net) uses two programs- one to play the game, another to patch the game as updates come out. Players actually launch the updater...
1
by: Odi | last post by:
I have created a java swing program that I want to run from the desktop instead of having to go to the command line and typing > java HelloWorld to execute it. My java book doesn't give me details...
3
by: mthlv12 | last post by:
In C you can create a TRUE daemon which you start by executing it and it severs itself from the terminal you started it from. In java you can use javaw in windows, but in unix you would have to...
11
by: Jos? Cardoso | last post by:
Hi, I have developed a java application that interacts with a database. Now i've the folowing problem: - I have a list retrieved from the database(about 200 records); - for each, i do a...
0
by: Christian Marko | last post by:
Hi to all! As I read in the bug report on the Sun website, the bug, that java and javaw uses different default locales should be fixed with 1.4.2, but I use 1.4.2_04 and this bug still occurs. ...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
2
by: Huub | last post by:
Hi, Running Windows 2000 Pro, I want to run a Java program. I have jdk 1.5 installed, but neither "javaw" nor "java" starts it. All I get are error message about "Exception in thread main..."....
0
by: sinzero | last post by:
Hi, i appreciate if someo can help me, i thik that i have a little problem whit the java plug-in and one software, but i dont realy know what i must do.... the problem is ..when im trying to run...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.