473,890 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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.

Jul 17 '05
11 12269

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!


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

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


"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
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.


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

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.


> 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.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
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

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.
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...
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.
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...
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
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...
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();
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.
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...
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...
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,...
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...
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,...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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();...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.