CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Posts
    5

    JBuilder (problem managing code )

    Please help I am new to Jbuilder, I real the tutorial but am still having trouble understanding how Jbuilder manages code. Basically I want to create a package called my_package with 4 classes (Class1, Class2,...,Class4). I then want to write a class called MyMainClass1(with a main method) which uses the classes in my_package). I also want to create another class with a main method called MYClass2 which uses the classes in my_package to do something slightly different. Please explain how to organize all of this in JBuilder. What I did is given below and for some reason MyProejct2 cant find the package my_package

    with the following tree MyMainClass1 can import my_package and use the classes but in MyProject 2 I want to use my_package and cannot

    MyProject1
    my_package
    Class1
    Class2
    Class3
    Class4
    MyMainClass1


    MyProject2
    MyMainClass2

  2. #2
    Join Date
    Jan 2002
    Location
    Halifax, NS, Canada
    Posts
    985
    You can set it up in your project properties.

    You could jar your first project and add it as a required library in your second.

    Project->Project Properties->Rquired Libraries tab->Add button

    There's also a wizzard for creating jars

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured