你好,当在 JGRASP 中编译 HelloWorld 时出现错误。

huangapple 未分类评论46阅读模式
英文:

HelloWorld in JGRASP getting error when compiled

问题

我在一台Mac上,使用最新安装的JDK的JGRASP。当我尝试运行以下代码时:

public class HelloWorld
{
   public static void main(String[] args)
   {
      System.out.println("Hello World!");
   {
}

我收到以下错误信息:

----jGRASP exec: javac -g HelloWorld.java
HelloWorld.java:7: error: reached end of file while parsing
}
 ^
1 error

我对Java和JGRASP都是新手。非常感谢您的帮助。

英文:

I'm on a max and using the latest JGRASP with JDK installed. When I try to run:

public class HelloWorld
{
   public static void main(String[] args)
   {
      System.out.println("Hello World!");
   {
}

I get this error:

----jGRASP exec: javac -g HelloWorld.java
HelloWorld.java:7: error: reached end of file while parsing
}
 ^
1 error

I am new to both Java and JGRASP. Brand new. Thanks in advance.

huangapple
  • 本文由 发表于 2020年4月6日 03:28:42
  • 转载请务必保留本文链接:https://java.coder-hub.com/61048274.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定