一、前缀~

最近重新看Java,别人推荐了一款轻量级的IDE,没错,就是JCreator。

它主要有两个版本:Pro和LE版本,其中Pro收费,LE版免费,但是功能相对于Pro更不齐全。

我下载的是csdn上的Pro破解版,传送门:http://download.csdn.net/download/liujun13579/4430786

安装完后感觉蛮不错的,又小又快,界面有点模范vs的感觉~

二、问题描述

废话不多说,先说说问题:

情形:某个文件夹中有一个test.java文件,我双击打开(默认使用JCreator),但是当我F5编译和运行时,

问题出现了。

首先是编译,没有问题,编译成功,也产生了.class文件

然后调转到运行窗口,问题来了:

--------------------Configuration: <Default>--------------------
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-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
See http://www.oracle.co...tion/index.html for more details.

以上明显就是你在命令行输入java时出现的帮助文档,我就在想可能是配置出了问题:

于是在Configure中检查,没有发现问题...

于是我打开了Options-->JDK Tools-->run application中的show command line,想看看具体的命令

再次运行,果然,问题出现了:

以下是执行的命令:

Command   : "D:\jdk\bin\java.exe" -classpath "F:\学习笔记\java学习笔记\java代码\test;D:\jdk\jre\lib\rt.jar;D:\jdk\lib\dt.jar;D:\jdk\lib\tools.jar;D:\jdk\jre\lib\ext\dnsns.jar;D:\jdk\jre\lib\ext\localedata.jar;D:\jdk\jre\lib\ext\sunjce_provider.jar;D:\jdk\jre\lib\ext\sunmscapi.jar;D:\jdk\jre\lib\ext\sunpkcs11.jar"

你是否发现好像少了点什么?没错,怎么最后没有跟文件名啊!!

正常情况应该是(java test),但在这里test不见了~~

问题是发现了,但是如何解决呢?

三、解决问题

于是我就在百度上查找,但是很多都是错误的答案,于是俺就上Google找,

输入 JCreator can‘t run,查询,google果然不负我啊,第一条就是答案~

以下是老外的原文:

I have JCreator Pro 5.00.016
Up until today everything was fine.  I ran a program this morning and everything worked just fine, now when I try and run it I get the following output.
Please let me know what I can do to correct this.
Thank you.

--------------------Configuration: <Default>--------------------
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-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
See http://www.oracle.co...tion/index.html for more details.

#2nyccanuck

  • Advanced Member

  • Members
  • 77 posts

Posted 11 February 2012 - 06:20 AM

Update:

Still will not run in Pro version.

It will run in the LE version.

Would like to know what to do as I have paid for Pro and am not able to use it!

大概的意思就是说:碰到了和我我一样的问题,如何解决,最后他抱怨说LE版本没问题,反倒是花了钱买的却不能运行~~(俺用的是盗版,就不好跟着起哄了~)
最后,经过和管理员的一系列探讨:这是bug....
需要等待更新,暂时的解决办法有以下几个:
1.建立一个projiect,每次打开projiect来运行,这样就没有问题
2.不要直接从文件打开JCreator,而是先打开JCreator,并且保证start page tab打开了,然后再点击open打开文件,这个时候就能运行了~!
如果你有好的解决办法,请留言告诉我哦~!

关于最新版的JCreator只能编译不能运行的问题相关推荐

  1. 20220910最新版Redis7源码编译及windows中安装

    20220910最新版Redis7源码编译及windows中安装 文章目录 20220910最新版Redis7源码编译及windows中安装 1.Cygwin安装 1 Cygwin介绍 ...is i ...

  2. IBatis.Net学习笔记二--下载、编译、运行NPetShop

    下载地址:http://ibatis.apache.org/dotnetdownloads.cgi 有最新版的IBastis.Net的源代码等,还有NPetShop的例子(例子比较老) 将NPetSh ...

  3. Java在加载阶段会加载依赖吗,Java程序编译和运行过程之 一个对象的生命之旅(类加载和类加载器)...

    Java程序从创建到运行要经过两个大步骤 1:源文件(.java)由编译器编译成字节码ByteCode(.class) 2:字节码由Java虚拟机解释并运行 源文件编译成字节码,主要分成两个部分: 1 ...

  4. PHP中间件ICE,ICE的安装配置,ICE常见编译和运行(异常)错误(自测Php版本安装部分,因为php版本跟ice版本不一样失败)

    ICE(Internet Communications Engine)是Zeroc提供的一款高性能的中间件.使用ICE能使得php(或c++,java,python)与java,c++,.net,py ...

  5. Java编译的运行机制初步讲解

    简单来说Java程序的运行机制分为编写.编译和运行三个步骤. 一.Java编写文件格式 编写是指在Java开发环境中进行程序代码的编辑,最终生成后缀名为".java"的Java源文 ...

  6. Fuchsia编译及运行

    原址 Fuchsia 的编译及运行是非常简单的,至少在 Mac 上如此,中间没有出现任何讨厌的错误 获取源码 首先需要安装 Homebrew,这个随便百度 # xcode-select --insta ...

  7. Fuchsia - 编译及运行

    Fuchsia 的编译及运行是非常简单的,至少在 Mac 上如此,中间没有出现任何讨厌的错误 获取源码 首先需要安装 Homebrew,这个随便百度 xcode-select --install 安装 ...

  8. C++下编译和运行C语言程序

    1.新建源文件 打开 Dev C++,在上方菜单栏中选择"文件 --> 新建 --> 源代码": 或者按下Ctrl+N组合键,都会新建一个空白的源文件,如下图所示: 在 ...

  9. 实现微信小程序编译和运行环境系列(初始篇)

    实现微信小程序编译和运行环境系列(初始篇) 前言 最近一段时间在研究实现微信小程序和小游戏编译打包和运行环境平台开发 目前基本可以支持微信基础库2.8.2功能迭代了 所以想通过记录分享一下自己的认知过 ...

  10. X86_64(优麒麟)系统下构建 i386 文件系统并编译Box86运行wine

    提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录 前言 一.在 X86_64 Linux 系统下搭建 i386 文件系统 二.配置 Schroot 工具使得文件系统切换更方便 ...

最新文章

  1. 如何使用 OpenCV 开发虚拟键盘
  2. “HTTP 500 - 内部服务器错误”解决办法
  3. 图解matlab基本操作
  4. mysql安装转自 http://www.cnblogs.com/azhw/p/5143232.html
  5. 图解全排列问题_一道笔试题(122345求有条件全排列)的两种做法
  6. 让 .NET 轻松构建中间件模式代码
  7. 点播转码相关常见问题及排查方式
  8. Docker系列(四)守护式容器
  9. 【2012 - 百度之星资格赛 - H:用户请求中的品牌】
  10. MS CRM 2011 Q2的一些更新
  11. java虚拟机执行过程
  12. 编程路上,对于迷失者的一些小小建议
  13. 小企业会计准则 ——主要账务处理和财务报表(2)
  14. 2015蓝桥真题(A组省赛)
  15. 路由器和三层交换机的基本实验操作
  16. laravel跨域问题
  17. matlab-基础 正无穷 负无穷
  18. 多路脉冲发生器设计(脉冲个数,脉冲宽度可控)
  19. 【HbuilderX+微信小程序开发者工具解决报错问题】
  20. Linux鸟哥的私房菜--基础篇--第五章 Linux的文件权限和目录配置

热门文章

  1. 791A.Bear and Big Brother
  2. Perl语言入门到精通学习路线
  3. Java考试题30道(附答案)
  4. 快速掌握粒子编辑器 —— onebyonedesign网页版
  5. Java之JSON详解
  6. C# web 读取excel并导入数据库
  7. Keli Linux与网络安全(2)——初探Keli
  8. 中文核心期刊目录(2008年最新版)
  9. java实现打印菱形(任意输入数字打印任意阶菱形)
  10. 常见的下载工具有哪些?BT下载软件哪个好