Bingo!!
Added package_play to java command & it works.
Norm, thanx for staying with this with your help
... Charlie
Type: Posts; User: j831526
Bingo!!
Added package_play to java command & it works.
Norm, thanx for staying with this with your help
... Charlie
Forgot to mention I'm on a Mac. Here's a recap:
package package_play; # File name PP.java
public class PP {
public static void main(String[] argv) {
Flubber f = new Flubber("Hi...
The CLASSPATH is not set. The default is supposed to default to the current directory which is the directory containing both files.
package package_play;
// file name is PP.java in package_play directory
public class PP {
public static void main(String[] argv) {
Flubber f = Flubber("Hi fool");
...
It is. That's where the jar command placed it. The manifest I passed to the jar command is in my Brenda directory with everything else. The jar command modifies the manifest file and saves the result...
Yes, all the source files, classfiles, and the manifest are in the Brenda directory.
Charlie
Same result:
java -cp Brenda.jar Brenda.Brenda
Error: Could not find or load main class Brenda.Brenda
BTW: what's the p option? It doesn't show up in jar -help.
Thanx - Charlie
Sorry, yes - the package name is also Brenda.
Charlie
As shown above the manifest file contains the single line: Main-Class: Brenda
And Brenda.class is in the jarfile which I confirmed using the Unarchiver.
Charlie
Are you trying to write a CGI script? These are programs which run on the server side usually to process forms. The program name is specified in the HTML file and run on the server and receives data...
java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode
This is all being done on an iMac...
Greg,
That fixed things, and your code comments were very helpful.
Thanx - Charlie
Here's the code again properly formatted (I hope). Thanks Greg Brannon for the link to the formatting stuff:)
public class Test1_panel extends JPanel {
public Test1_panel(Color c) {
...
Only the BorderLayout.CENTER displays, and it fills the frame. If I comment out the red center, I get a white center (default I assume) filling the frame. I'm obviously missing something basic, but I...
Not sure if using this reply is the proper way to ask a question; I'm new to this forum.
Anyway, I work with an editor (JEdit if it matters), the command line (TCSH on an iMac), and Python...