Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Armando Peterson   on May 27 In Java Category.

  
Question Answered By: Sheryl Morgan   on May 27

In SunOne Studio, (formely Forte) you mounted a directory of your system
to in the "Explorer" right. Your main class  should be outside the
package declaration  to be able to run  it. Example:

Case:: Main.class is in C:\Temp Directory, and I have a package  say
"pk.help.classes"

1. I will mount C:\Temp in the explorer
2. I will copy package folder INSIDE C:\Temp
3. I will write import statements as usual and Forte will take care of
it.

Second Method::

1. Set your classpath accordingly, from Tools > Options > Choose
Building > Comiler Types and set Classpaths from advanced tab

Third Method:

If you are switching IDEs frequently, one way is to copy your JAR files
or other objects in JDK\ JRE\ LIB\ EXT Directory, they will be imported
auto.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Forte IDE Problem - Running/Debuggin packed classes Or get search suggestion and latest updates.


Tagged: