Root dir in JBuilder

Hi all,
I want to change the root dir of an apllication in JBuilder.

I got a package "de.git.xmlXml" in a folder (c:\temp\de.git.xmlXml). The project File is in c:\temp\. . My start class is in "c:\temp\de.git.xmlXml". The user.dir in JBuilder is "c:\temp\de.git.xmlXml" in J++ or VisualAge it is "C:\temp\.." How could I change the rootDir?

TIA Micha
PROGRAMMING030999Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JodCommented:
Paths page (Project Properties dialog box)

The Paths page of the Project Properties dialog box sets the following options:

JDK version to compile against
Source Root Path
Output Root Path
Java libraries to use when compiling

To set these options for the current project, choose Project|Properties. You can also right-click the project file in the navigation pane and choose the Properties command.

To set these options for all new projects, choose Project|Default Properties.



Target JDK Version

The version of the JavaSoft Java Development Kit (JDK) to use when compiling and running your project. JBuilder can compile and run against JavaSoft JDK versions 1.0 through 1.2.

Note: Depending on the features used in your application, there may be other restrictions on which JDK you can use. For example, for CORBA applications, you must use JDK 1.1.6 or later.

Click the Define button to display the Available JDK Versions dialog box, where you set up the items listed in the Target JDK Versions drop-down list.



Root Directories

Source

The path the compiler searches for a source file. This is the root of the Source Path. Subdirectories below the root represent the package structure.

To add additional paths, separate them with a semicolon:
;Path 1;Path2



Output

The path in which the compiler places .class files. This is sometimes referred to as the OutPath. Files are placed in a directory tree that is based on the package structure.



Java Libraries

The Java libraries to use when compiling. Libraries are searched in the order listed.

To add an already-defined Java library to the list, click the Add button, choose a library from the window that appears, and click OK. If you do not see the library you want to use, click the Libraries button (described below).

To remove a library, select the library and click the Remove button.

To switch the order of libraries, drag and drop them.

Click the Libraries button to display the Available Java Libraries dialog box, where you set up the list of available libraries.

See also:
Building Applications with JBuilder: Setting project properties
0
JodCommented:
If you want to see the full monty with pictures and all, it is here:

http://www.borland.com/techpubs/jbuilder/jbuilder3/pg/project.html
0
PROGRAMMING030999Author Commented:
Thanks for your answer Jod,
That is what I find in the help file and that didn't help me.

Micha
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

JodCommented:
There really isn't a lot esle to say about it.

Go to:

Paths page of the Project Properties dialog box

Look at:

Root Directories: Source (for the dir where JBuilder looks for the code files you are using)

and

Root Directories: Output to change the place where JBuilder puts the compiled code (class files)


then:

change the source path to be the base dir (eg: c:\temp) where you want JBuilder to start looking for code files.

That's it.

Did you also want to move the project file somewhere else?

Also it is not a good idea to put 'dots' in your package name:

de.git.xmlXml

would normally translate to a package called

xmlXml

in a subdir of

\de\git\xmlXml

So in your case you would have your source files in:

c:\temp\de\git\xmlXml

In java each dot represents another sub directory. This is how java separates code and packages apart from one another - they go in separate physical directories. Java will look for the code and if it is not in the subdir you specify then it won't work.

So I would change the name of your package or move it into this dir structure.

What is the specific problem you are having, anyway?

Does it not compile, run or do you just wish to move it?
0
JodCommented:
Look here for further details on how packages are stored:

http://codeguru.developer.com/java/tij/tij0057.shtml

It's about halfway down when it starts talking about how packages are prganised on the computers hard disc but the whole chapter is useful anyway.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PROGRAMMING030999Author Commented:
Thanx for the help Jod.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.