`
jackzlz
  • 浏览: 140188 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

eclipse运行出现Usage: javaw [-options] class [args...]...

阅读更多

最近在eclipse运行时出现了,

 

 

Usage: javaw [-options] class [args...]
       (to execute a class)
or  javaw [-options] -jar jarfile [args...]
       (to execute a jar file)
where options include:
-d32      use a 32-bit data model if available
-d64      use a 64-bit data model if available
-server   to select the "server" VM
-hotspot      is a synonym for the "server" VM  [deprecated]
              The default VM is server.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
              A ; separated list of directories, JAR archives,
              and ZIP archives to search for class files.
-D<name>=<value>
              set a system property
-verbose[:class|gc|jni]
              enable verbose output
-version      print product version and exit
-version:<value>
              require the specified version to run
-showversion  print product version and continue
-jre-restrict-search | -no-jre-restrict-search
              include/exclude user private JREs in the version search
-? -help      print this help message
-X            print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
              enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
              disable assertions with specified granularity
-esa | -enablesystemassertions
              enable system assertions
-dsa | -disablesystemassertions
              disable system assertions
-agentlib:<libname>[=<options>]
              load native agent library <libname>, e.g. -agentlib:hprof
              see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
              load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
              load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
              show splash screen with specified image
最终找到的原因是,Eclipse语言包有一个bug。
https://bugs.eclipse.org/bugs/show_bug.cgi?id=352203
这个bug导致类路径过长(类路径多了一长串javaelementlabels_comma_string=,...)。
正如博客园这位说的一样(http://www.cnblogs.com/aigongsi/archive/2012/04/11/2442774.html),
类路径过长就会出现Usage: javaw [-options] class [args...]...
在stackoverflow上也有人提这样的问题,是他(http://stackoverflow.com/questions/9862037/trouble-compiling-any-java-code-in-eclipse)
提示我在解决类路径问题后可能需要重启电脑。确实如此。

分享到:
评论

相关推荐

    java.exe和javaw.exe的区别及使用方法

    主要介绍了java.exe和javaw.exe的区别及使用方法,需要的朋友可以参考下

    eclipse指定启动的虚拟机配置说明

    eclipse指定启动的虚拟机配置说明 -vm D:\Java\jre6\bin\javaw.exe

    java [options] classname [args]

    进阶之路-Java技术体系- 黄国渝的博客- ...发表时间:2019年7月22日 - java [ options ] classname [ args ] java [ options ] -jar filename [ args ] javaw [ options ] classname [ args ] javaw [ options ] -...

    php-java-bridge 配置包

    start javaw -jar JavaBridge.jar 保存后,双击启动 会有一个提示框选择vmbridge port 默认8080,直接点ok就行了 5.在/demo/下新建test.php内容如下: require_once ( "java/Java.inc" ); header( "content-type:...

    JAVA学生管理系统

    然后将6个java文件分别编译生成相应的字节码(.class)文件,然后,用java 解释器运行主类:C:\Student\java StudentManager 2、使用jar.exe把一些文件压缩成JAR文件,来发布我们的应用程序。我们可以把本java应用...

    zktools.zip

    zookeeper可视化工具 ...软件启动后会有一个cmd窗口,可以查看软件运行时的日志信息,cmd窗口关闭后软件也会关闭,如果不想加不到cmd窗口可以使用javaw-start.cmd来启动软件 3)双击 bin/javaw-start.cmd

    myeclipse2017破解工具

    myeclipse中文官网下载myeclipse2017 CI4 版本,然后用该工具进行破解,破解步骤和以前破解方法一样,可以去网上找2015的破解方法,测试正常,现在正在使用,官网CI4下载地址:...

    java打包exe 更换图标

     配置好launcher.cfg后,双击launch.exe即可运行java应用程序。 注意点:执行.exe文件时候会先找跟.exe文件同名的.cfg配置文件,如果没有则会找launcher.cfg文件。所以可以在同一个文件目录下有多个exe可执行文件,...

    Maven插件安装使用说明

    注意:安装了maven插件,使用的时候老是有这样的提示:...C:\Program Files\Java\jdk1.5.0_12\bin\javaw.exe (这里写你所安装的JDK路径下bin\javaw.exe) -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m

    thebrain 8.x 和谐破解

    写一个bat文件是为了方便,你也可以用鼠标右击cmd.exe,选择以管理员身份运行,然后输入:javaw -jar pb.jar,就会出现破解程序窗口,其他的跟他们说的一样,先patch,然后输入你的要的注册名把info7A.bin文件保存到...

    Windouws 64 位Tomcat7.0.40 + 64位jdk1.7.0u21 绿色版.part1

    │ │ │ classfile_constants.h │ │ │ jawt.h │ │ │ jdwpTransport.h │ │ │ jni.h │ │ │ jvmti.h │ │ │ jvmticmlr.h │ │ │ │ │ └─win32 │ │ │ jawt_md.h │ │ │ jni_md.h │ │ │ │...

    对jre包里的rt.jar精简

    第三步:cmd,运行命令javaw -Dfile.encoding=utf-8 -jar GreenJVMMake.jar -t da -i ./mytest.jar -o ./ 执行后可以启动你的小项目(mytest.jar是要执行的项目),把各个功能都跑下,然后关闭,你就会发现当前目录下...

    精简的jre,及精简工具

    请不要下载,有些问题,有的程序无法使用。...使用方法javaw -jar GreenJVMMake.jar -t da -i ./myapp.jar -o ./ 就可生成rt.jar。用它覆盖掉jre\lib\rt.jar 如果还不行就使用java -jar myapp.jar查看问题

    贴心Java盒子 v1.00

    贴心Java盒子简介贴心Java盒子(又名:科成网络管理工具箱),是一款Java开发的系列日用迷你小...需要Java 虚拟机 (JVM)执行文件:start.bat 运行,或:javaw -classpath bin/ begin.PeaceBox 运行贴心Java盒子页面展示

    proe5.0安装方法详细图示

    更改 "%start_cmd% "%CGTECH_JRE%\bin\javaw" -Xms16m -Xmx64m -Xss4m -classpath "%CGTECH_CLASSES%;%CGTECH_CLASSES%\CGTech.jar" Vericut %argstr%" 为 "%start_cmd% "%CGTECH_JRE%\bin\javaw" -Xms16m -Xmx64m...

    weka 集成LibSVm所需的jar(wlsvm.zip)

    修改cmd_default=javaw -Dfile.encoding=#fileEncoding# -Xmx#maxheap# -classpath "#wekajar#;#cp#" #mainclass# 为cmd_default=javaw -Dfile.encoding=#fileEncoding# -Xmx#maxheap# -classpath "#wekajar#;#cp#;...

    捕鱼java源码下载-log-2-:登录我的世界

    Files/AdoptOpenJDK/jdk-8.0.282.8-openj9/bin/javaw.exe 检查 Java 版本... Java 是版本 1.8.0_282,使用 64 位架构,来自 AdoptOpenJDK。 主类:net.minecraft.launchwrapper.Launch 本机路径:C:/MultiMC/mmc-...

    Windows下java、javaw、javaws以及jvm.dll等进程的区别

    主要介绍了Windows下java、javaw、javaws以及jvm.dll等进程的区别,本文分别讲解了它们的作用并给出代码实例,最后做出了区别总结,需要的朋友可以参考下

    MovieRentalSystem

    C:\Program Files\Java\jdk-12.0.2\bin\javaw.exe -Dfile.encoding=Cp1252 -classpath "C:\~\MRS;C:\~\DBConnection\mysql-connector-java-8.0.23\mysql-connector-java-8.0.23.jar" MovieRentalSystem ...

Global site tag (gtag.js) - Google Analytics