简体   繁体   English

GWAN无法识别Sun Java 7

[英]GWAN not recognising Sun Java 7

OS: Ubuntu 12.04 Desktop 操作系统: Ubuntu 12.04 Desktop

Java installed: java version "1.7.0_05" Java(TM) SE Runtime Environment (build 1.7.0_05-b05) Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode) 安装的Java: java版本“ 1.7.0_05” Java(TM)SE运行时环境(内部版本1.7.0_05-b05)Java HotSpot(TM)64位服务器VM(内部版本23.1-b03,混合模式)

Running sudo ./gwan gives following error:- Please install OpenJDK or SUN Java . 运行sudo ./gwan会出现以下错误:-请安装OpenJDK或SUN Java。

'report.java': to use Java (*.java) scripts, install 'javac' (sudo apt-get install javac). 'report.java':要使用Java(* .java)脚本,请安装'javac'(sudo apt-get install javac)。

'loan.java': to use Java (*.java) scripts, install 'javac' (sudo apt-get install javac). 'loan.java':要使用Java(* .java)脚本,请安装'javac'(sudo apt-get install javac)。

'argv.java': to use Java (*.java) scripts, install 'javac' (sudo apt-get install javac).. 'argv.java':要使用Java(* .java)脚本,请安装'javac'(sudo apt-get install javac)。

'hello.mm': to use Objective-C++ (*.mm) scripts, install 'gobjc++' (sudo apt-get install gobjc++) 'hello.mm':要使用Objective-C ++(* .mm)脚本,请安装'gobjc ++'(sudo apt-get install gobjc ++)

'all.java': to use Java (*.java) scripts, install 'javac' (sudo apt-get install javac) 'all.java':要使用Java(* .java)脚本,请安装'javac'(sudo apt-get install javac)

Javac, Java both in sys path, both available in terminal Javac,Java都在sys路径中,都在终端中可用

I have not touched any configuration files just went through http://gwan.com/download then tried heading over to 我没有碰过任何配置文件,只是通过http://gwan.com/download然后尝试转到

localhost:8080/?hello.java 本地主机:8080 /?hello.java

note: all C files work. 注意:所有C文件均有效。

Have not tried openJDK though I would like to stay away from this option. 尽管我不想使用此选项,但尚未尝试过openJDK。

Try to use the JAVA_HOME environment variable to tell which JVM should be used. 尝试使用JAVA_HOME环境变量来确定应使用哪个JVM。 The G-WAN site has a dedicated Java FAQs entry for that question. G-WAN站点有一个专门的Java FAQ条目来解决该问题。

Reporting the same kind of problems in the past I have been told that the next release will be more JVM-agnostic. 过去,我曾报道过同样的问题,但我被告知下一个版本将与JVM无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM