关于最新版的JCreator只能编译不能运行的问题
一、前缀~
最近重新看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果然不负我啊,第一条就是答案~
以下是老外的原文:
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
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!
关于最新版的JCreator只能编译不能运行的问题相关推荐
- 20220910最新版Redis7源码编译及windows中安装
20220910最新版Redis7源码编译及windows中安装 文章目录 20220910最新版Redis7源码编译及windows中安装 1.Cygwin安装 1 Cygwin介绍 ...is i ...
- IBatis.Net学习笔记二--下载、编译、运行NPetShop
下载地址:http://ibatis.apache.org/dotnetdownloads.cgi 有最新版的IBastis.Net的源代码等,还有NPetShop的例子(例子比较老) 将NPetSh ...
- Java在加载阶段会加载依赖吗,Java程序编译和运行过程之 一个对象的生命之旅(类加载和类加载器)...
Java程序从创建到运行要经过两个大步骤 1:源文件(.java)由编译器编译成字节码ByteCode(.class) 2:字节码由Java虚拟机解释并运行 源文件编译成字节码,主要分成两个部分: 1 ...
- PHP中间件ICE,ICE的安装配置,ICE常见编译和运行(异常)错误(自测Php版本安装部分,因为php版本跟ice版本不一样失败)
ICE(Internet Communications Engine)是Zeroc提供的一款高性能的中间件.使用ICE能使得php(或c++,java,python)与java,c++,.net,py ...
- Java编译的运行机制初步讲解
简单来说Java程序的运行机制分为编写.编译和运行三个步骤. 一.Java编写文件格式 编写是指在Java开发环境中进行程序代码的编辑,最终生成后缀名为".java"的Java源文 ...
- Fuchsia编译及运行
原址 Fuchsia 的编译及运行是非常简单的,至少在 Mac 上如此,中间没有出现任何讨厌的错误 获取源码 首先需要安装 Homebrew,这个随便百度 # xcode-select --insta ...
- Fuchsia - 编译及运行
Fuchsia 的编译及运行是非常简单的,至少在 Mac 上如此,中间没有出现任何讨厌的错误 获取源码 首先需要安装 Homebrew,这个随便百度 xcode-select --install 安装 ...
- C++下编译和运行C语言程序
1.新建源文件 打开 Dev C++,在上方菜单栏中选择"文件 --> 新建 --> 源代码": 或者按下Ctrl+N组合键,都会新建一个空白的源文件,如下图所示: 在 ...
- 实现微信小程序编译和运行环境系列(初始篇)
实现微信小程序编译和运行环境系列(初始篇) 前言 最近一段时间在研究实现微信小程序和小游戏编译打包和运行环境平台开发 目前基本可以支持微信基础库2.8.2功能迭代了 所以想通过记录分享一下自己的认知过 ...
- X86_64(优麒麟)系统下构建 i386 文件系统并编译Box86运行wine
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录 前言 一.在 X86_64 Linux 系统下搭建 i386 文件系统 二.配置 Schroot 工具使得文件系统切换更方便 ...
最新文章
- 如何使用 OpenCV 开发虚拟键盘
- “HTTP 500 - 内部服务器错误”解决办法
- 图解matlab基本操作
- mysql安装转自 http://www.cnblogs.com/azhw/p/5143232.html
- 图解全排列问题_一道笔试题(122345求有条件全排列)的两种做法
- 让 .NET 轻松构建中间件模式代码
- 点播转码相关常见问题及排查方式
- Docker系列(四)守护式容器
- 【2012 - 百度之星资格赛 - H:用户请求中的品牌】
- MS CRM 2011 Q2的一些更新
- java虚拟机执行过程
- 编程路上,对于迷失者的一些小小建议
- 小企业会计准则 ——主要账务处理和财务报表(2)
- 2015蓝桥真题(A组省赛)
- 路由器和三层交换机的基本实验操作
- laravel跨域问题
- matlab-基础 正无穷 负无穷
- 多路脉冲发生器设计(脉冲个数,脉冲宽度可控)
- 【HbuilderX+微信小程序开发者工具解决报错问题】
- Linux鸟哥的私房菜--基础篇--第五章 Linux的文件权限和目录配置