Search:

Type: Posts; User: j831526

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    6,379

    Re: Cannot find class in same package

    Bingo!!
    Added package_play to java command & it works.
    Norm, thanx for staying with this with your help
    ... Charlie
  2. Replies
    6
    Views
    6,379

    Re: Cannot find class in same package

    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...
  3. Replies
    6
    Views
    6,379

    Re: Cannot find class in same package

    The CLASSPATH is not set. The default is supposed to default to the current directory which is the directory containing both files.
  4. Replies
    6
    Views
    6,379

    Cannot find class in same package

    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");
    ...
  5. Replies
    11
    Views
    779

    Re: Jar facility appears broken

    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...
  6. Replies
    11
    Views
    779

    Re: Jar facility appears broken

    Yes, all the source files, classfiles, and the manifest are in the Brenda directory.

    Charlie
  7. Replies
    11
    Views
    779

    Re: Jar facility appears broken

    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
  8. Replies
    11
    Views
    779

    Re: Jar facility appears broken

    Sorry, yes - the package name is also Brenda.

    Charlie
  9. Replies
    11
    Views
    779

    Re: Jar facility appears broken

    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
  10. Poll: Re: I want to convert sloane1.com (php website) to Java Website

    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...
  11. Replies
    11
    Views
    779

    Jar facility appears broken

    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...
  12. Replies
    4
    Views
    1,513

    Re: BorderLayout displays only Center area

    Greg,

    That fixed things, and your code comments were very helpful.

    Thanx - Charlie
  13. Replies
    4
    Views
    1,513

    Re: BorderLayout displays only Center area

    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) {
    ...
  14. Replies
    4
    Views
    1,513

    BorderLayout displays only Center area

    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...
  15. Replies
    2
    Views
    874

    Re: Setting up Java Development Environment

    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...
Results 1 to 15 of 15