Fred Fuchs

Greenhorn
+ Follow
since Dec 17, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fred Fuchs

I now looked at the classpath settings in NetBeans and it always stays the same, no matter if I move the project folder, or not. It always looks for those packages under glassfish4 directory.

Also, there is an error message, when I open the project from a path, other than /glassfish4/...:

"Project Problems. One or more project resources could not be found."

When I click on "Resolve problems" it says

"Parent POM file is not accessible. Project might be improperly setup. The parent POM with id org.glassfish.javaeetutorial:jsf:7.0.1 was not found in sources or local repository. Please check that <relativePath> tag is present and correct, the version of parent POM in sources matches the version defined.
If parent is only available through a remote repository, please check that the repository hosting it is defined in the current POM."
Jaikiran Pai, thank you for your answer.

My question is now: where does the compiler look for those packages? Doesn't it search them in the java-directory? I really don't see the difference, because those packages are global, aren't they? Like <stdlib>-library in C++?

And how can I set the classpath in NetBeans?
Hello everyone,

I'm learning Java EE at the moment and will probably have many questions for you

Now I discovered a strange issue with the javax-packages. I'm learning Java EE using the official Oracle tutorial.

The first practical example is a "hello username" Web Application with a managed bean, that uses Named and RequestScoped annotations. It's absolutely no problem, as long as the project folder lies under glassfish4-directory, but if i try to move it, the compiler cannot find the javax packages for the annotations.
It does not matter, if I right click on the project in NetBeans and choose "Move", or delete the project, move the folder manually and then open it in NetBeans again.

I hope you can explain, why that happens.

Thanks a lot in advance!