当前位置: 技术问答>java相关
初学java,菜鸟问题,请进!
来源: 互联网 发布时间:2017-04-03
本文导语: 下面是命令和出错信息,请问出在哪里,改如何解决: D:jdkcorejavav1ch2Welcome>javac Welcome.java Error: could not open `D:jdklibjvm.cfg' D:jdkcorejavav1ch2Welcome>java Welcome Error opening registry key 'SoftwareJavaSoftJava Error: could not find j...
下面是命令和出错信息,请问出在哪里,改如何解决:
D:jdkcorejavav1ch2Welcome>javac Welcome.java
Error: could not open `D:jdklibjvm.cfg'
D:jdkcorejavav1ch2Welcome>java Welcome
Error opening registry key 'SoftwareJavaSoftJava
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
其中:Welcome是一个例子,其源文件如下:
/**
@version 1.11 2000-04-22
@author Cay Horstmann
*/
public class Welcome
{
public static void main(String[] args)
{
String[] greeting = new String[3];
greeting[0] = "Welcome to Core Java";
greeting[1] = "by Cay Horstmann";
greeting[2] = "and Gary Cornell";
for (int i = 0; i
D:jdkcorejavav1ch2Welcome>javac Welcome.java
Error: could not open `D:jdklibjvm.cfg'
D:jdkcorejavav1ch2Welcome>java Welcome
Error opening registry key 'SoftwareJavaSoftJava
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
其中:Welcome是一个例子,其源文件如下:
/**
@version 1.11 2000-04-22
@author Cay Horstmann
*/
public class Welcome
{
public static void main(String[] args)
{
String[] greeting = new String[3];
greeting[0] = "Welcome to Core Java";
greeting[1] = "by Cay Horstmann";
greeting[2] = "and Gary Cornell";
for (int i = 0; i