小编MMA*_*MAB的帖子

尽管使用相同版本进行编译和运行,但运行java程序失败

我正在尝试编译并运行这个代码,我只是在swing的教程中找到了.

我使用以下命令编译和运行程序:

编译:

/usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/javac ComboBoxDemo2.java
Run Code Online (Sandbox Code Playgroud)

跑:

/usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/java ComboBoxDemo2
Run Code Online (Sandbox Code Playgroud)

该程序:

/*
 * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above …
Run Code Online (Sandbox Code Playgroud)

java

1
推荐指数
1
解决办法
75
查看次数

标签 统计

java ×1