Windows XP标准VM上的“JAVA”和“JAVAW”? [英] 'JAVA' and 'JAVAW' on Windows XP standard VM?

查看:78
本文介绍了Windows XP标准VM上的“JAVA”和“JAVAW”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很明显,Windows XP有一个Java 2 VM(包括SWING模块),因为我们都可以在Internet Explorer中运行Java 2 applet。但是对于Java 2应用程序的支持是什么呢?


我只想在Windows XP上运行一个打包在JAR文件中的应用程序:

JavaProg.jar(Java Archive Resource)。但是,如果没有安装SDK,我就不会将
与JAVAW的JAR文件关联起来,或者使用JAVA

命令来使用''java -jar JavaProg.jar''。我知道Windows XP上的Java 2 VM可以在< APPLET>中使用archive =" JavaProg.jar"

属性从JAR文件运行applet ;标签。很明显VM可以从JAR文件运行Java 2

程序。


如果我想将我的JavaProg.jar发送给朋友我正在使用的是Windows XP,我该告诉他该怎么办?使用正常的Windows XP设置,

他没有JAVA命令或与JAVAW的JAR文件关联,

,因为我安装了我的SDK。难道他无法使用Windows XP安装中的VM运行我的应用程序

,或者他真的必须使用新的下载一个真正的BIG文件VM首先?我想,对于Windows XP的applet和应用程序,必须有一个完整的Java 2 VM。但是

我们应该怎样做才能运行这个JAR应用程序?


我们需要JAR文件关联或JAVA命令来运行程序
来自命令提示符的
。也许很明显该怎么做,但我有

不知道要改变什么或安装什么!


另一方面,如果我们有什么需要从一个

JAR文件运行一个应用程序,为什么在Windows XP上没有与JAR文件建立关联作为标准

? - 也许这只是我的设置,有什么问题?


我可能无法让我的朋友运行我的Java程序,如果他

必须首先使用Sun或MicroSoft的新Virtual

机器下载其中一些非常大的文件。调制解调器连接到互联网需要几个小时,这需要几个小时。


我们如何配置这个标准的虚拟机来运行应用? - 如果没有先安装额外的软件,那么它是否可以实现



如果有人对这个问题有一个简单的解决方案,那真的很高兴。


/ PC

解决方案

那么,目标PC必须安装JRE才能运行java应用程序。

一旦安装(JRE为+/- 10 Megs),必须设置路径,以便识别命令。



" PC" < Pe的************** @ lycos.com> écritdansle message de

news:c1 ************************** @ posting.google.c om ...

如果我想将我的JavaProg.jar发送给我的朋友,谁正在使用Windows XP,我该告诉他该怎么办?使用正常的Windows XP安装程序,他没有JAVA命令或与JAVAW的JAR文件关联,
就像我安装了SDK一样。难道他无法使用Windows XP安装中的VM运行我的应用程序,或者他是否真的必须首先使用新VM下载一个真正的BIG文件?我想,对于Windows XP的applet和应用程序,必须是一个完整的Java 2 VM。但是我们应该怎样做才能运行这个JAR应用程序?




使用JSmooth。它会从你的.jar创建一个.exe,它将负责在你朋友的电脑上找到并运行足够的JVM.

它是可用的在 http://jsmooth.sourceforge.net


感谢您的链接。它工作正常,JSmooth

的EXE文件大小合理。我想JSmooth总能在Windows XP上找到一台Java 2 VM。


/ PC


R < R@charabia.net>在消息新闻中写道:< bk ********** @ news-reader1.wanadoo.fr> ...

" PC" < Pe的************** @ lycos.com> écritdansle message de
新闻:c1 ************************** @ posting.google.c om ...

如果我想将我的JavaProg.jar发送给我的朋友,谁正在使用Windows XP,我该告诉他该怎么办?使用正常的Windows XP安装程序,他没有JAVA命令或与JAVAW的JAR文件关联,
就像我安装了SDK一样。难道他无法使用Windows XP安装中的VM运行我的应用程序,或者他是否真的必须首先使用新VM下载一个真正的BIG文件?我想,对于Windows XP的applet和应用程序,必须是一个完整的Java 2 VM。但是我们应该怎样做才能运行这个JAR应用程序?



使用JSmooth。它会从你的.jar创建一个.exe,它会在你朋友的电脑上找到并运行足够的JVM。
它可以在 http://jsmooth.sourceforge.net



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

解决方案

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.


"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


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



这篇关于Windows XP标准VM上的“JAVA”和“JAVAW”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆