473,692 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'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="JavaPr og.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 12249
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.goo gle.com...
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.goo gle.com...
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.goo gle.com...
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.goo gle.com...
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.publi c.* groups, so that I have to
use GGC (Groups.Google. Com) to read/write groups like
'microsoft.publ ic.windows', 'microsoft.publ ic.java' or
'microsoft.publ ic.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 JavaRuntimEnvir onment (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.goo gle.com...
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.c om (Amey Samant) wrote in message news:<66******* *************** ****@posting.go ogle.com>...
hi there
ye your friend needs JavaRuntimEnvir onment (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.goo gle.com...
am*****@yahoo.c om (Amey Samant) wrote in message

news:<66******* *************** ****@posting.go ogle.com>...
hi there
ye your friend needs JavaRuntimEnvir onment (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

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

Similar topics

1
2749
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 the application normally by pressing the run button. The output window indicates that "javaw" is used. THE ALGORITHM FAILS, but not in the same way from invocation to invocation.
13
6590
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 which checks for fresh updates, then installs them, then launches the game client. We have begun our beta test, and would like to have the client open with a console window so that players can see exceptions that are thrown. How to do this seems to...
1
2973
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 and can't find any references on the internet. Thanx in advance.
3
2612
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 do "nohup java programname &" . But this is not really a TRUE daemon because if you now say "fg" it is back under command line control. I read many examples and they all say that in java a daemon thread will exit when there are no non-daemon...
11
3540
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 Jlabel constructed from an html String; - for each JLabel i construct a JPanel e add it to the main panel. this works fine, but when there's an inactivity in the application
0
1634
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. If use the same jar-package and once I start it with java.exe, then everything works fine and the default locale in the application is set to the currently selected os language. If I start it with javaw.exe the default locale is set to I don't...
11
9251
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 C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
2
4512
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...". I've tried the java and javaw in both \jdk1.5.0-05\bin\ and \jdk1.5.0_05\jre\bin but so far without luck. What am I doing wrong? Thanks.
0
1305
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 the application appears this message.. FATAL ERROR: one of the following jar files is missing from he classpath: jfreechart-1.0.0.jar jcommo-1.0.0-rc1.jar Please make sure you run the application from the shortcut that was intalled on your...
0
8600
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8535
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9079
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8794
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5817
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4322
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4555
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2234
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1955
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.