NetBeans Doesn't recognize project folders - java

NetBeans run programs and create project normally, but when I try to open an existing Project it doesn't recognize the project folder so when I click "Open Project" it doesn't open it.
it works fine using intellij IDE but I need To use NetBeans .
I tried using Import Project But the Same problem.
when I try to Import it it gives me an error :"C:\Users\ahmad\OneDrive\Documents\Desktop\ch24" does not contain a regular Eclipse project."
I uninstalled NetBeans 12.4 before installing NetBeans 13 if this may help.
When I try to open project:
1)
2)
I read on the internet I should change NetBeans.conf file Java home, but it was the right path already.
3)
I searched on the internet but found really old posts (9 years) and didn't work with me, such as changing java home path in netbeans conf. Using import Project.
Tried Moving the folder to NeatBeans Project folder but the same problem.

Related

Package Explorer in Eclipse stuck in resources

At work we are using Eclipse Java EE Indigo Service Release 2 (build id: 20120216-1857) and I'm having some difficulty with my package explorer. It seems like it's drilled into a mysterious "resources" directory and I cannot do anything to get out of it and see my packages. I've had to switch to using Project Explorer for some time but I just prefer Package Explorer. Can anyone assist with this? I've included an image:
I've attempted to link with Editor, reset perspectives, close and re-open perspectives, but nothing changes. I haven't tried re-installing but I'd really like to avoid having to do this.
Any suggestions?

LibGDX project can't find assets folder

I have suddenly run into an issue with my build environment and I can't figure out why. I can run my project just fine using gradlew desktop:run however, when I try to run the project from Eclipse using right-click run as desktop application (on the desktop project of course) it suddenly cannot find my pack.atlas file. There is no doubt the file exsts. I have refreshed my eclipse project multiple times and the project runs fine using gradle commandline. It was working fine yesterday. The only thing I can think of that made it mess up was I ran a Gradle command from within the IDE yesterday but I'm not sure how it could have got messed up like this. It is important for me to figure out this issue as I cannot use the Eclipse debugger with this error. Does anyone have any guess as to why Eclipse isn't seeing the assets folder?
Probably your assets from the android project is not correctly linked with the desktop project.
Your linked assets folder from inside the desktop project should look like this:
If it doesn't(or it doesn't exists) ,delete the folder(in the desktop project),and go to the the project properties->java build path->source->link source
browse->[select the asset folder inside the android project]->finish

Trying to open a file with Eclipe - eclipse.exe isn't added to the Open With: window

Thoughts on fixing this?
I'm trying to open my .project file for a homework assignment and the Open With: program (?) doesn't seem to be detecting Eclipse at all.
It works perfectly fine on my laptop, but I use my desktop as my main machine and thus need it to work on here.
Any help is appreciated!
You should not use the .project file to start Eclipse.
Start eclipse from the main start menu shortcut or eclipse.exe.
Then select the workspace (browse to it) you want to work in (and that contains your project).
If your project is not in a workspace, import it with the eclipse import menu.

Can't link to cocos2dx using eclipse for android on OSX

I've never spent so much time on initial setup for a development environment before, this is getting kind of ridiculous.
I'm trying to run the demo code that comes with cocos2dx.
I'm using:
the eclipse flavor that comes with the ADK.
cocos2d-2.1beta3-x-2.1.0
ndk-r8c
Ive tried building an app template using create-android-project.sh which I had the same problems with but for this question I'll reference the hello.cpp sample app.
I run the build_native.sh script and then import it in eclipse.
Next is where all the different tutorials I've tried vary. Some say to 'convert to a c++ project' some say you can already 'run as android project' at this point already.
For me it seem like the android java project can't link to the cocos2dx project.
I get:
The import org.cocos2dx.lib cannot be resolved
for
import org.cocos2dx.lib.Cocos2dxActivity
No tutorial really made any mention of having to build the cocos2dx libraries except for one that said you now have to import the cocos libraries as projects in to the eclipse workspace. So Ive done that and built them but there are some errors in them after building.
I've also tried adding the folder path to link to in the project which for me is at /cocos2d-2.1beta3-x-2.1.0/cocos2dx/platform/android/java/src/org/cocos2dx/lib but that didn't help.
Any idea why I can't build/run the examples that come with cocos2dx even when following the build instructions that are on the cocos2dx website to the T?
I'm doing this now on OSX as well and this fixed it for me:
run the adroid script create-android-project.sh then
import that new project into Eclipse
in the new Eclipse project right-click the src folder > left-click 'Import'
in the Import window choose Android > Existing Android Code Into Workspace > Next >>
Browse to '/cocos2dx/platform/android/java' ('/cocos2dx/' should be be one level above the new project's directory)
click Finish. If the error persists try a Project > Clean

Android+Eclipse project sharing via SVN?

I am very new to Eclipse (Galileo, Eclipse IDE for Java Developers) and working on my first Android app, but have used SVN on many other kinds of projects and development. Last night I took my first crack at pushing the new source into a shared repository (at work) and then pulling it back down at home.
Based on an SO question/answer, I had ignored the bin and gen folders, but added everything else. When I got home, I had hoped it would be as easy as pointing eclipse to the newly downloaded source tree.
I tried setting the workspace (requested when eclipse started) to the precise folder holding all source. Nothing showed up. It was as if I were starting fresh regardless of all the source and files sitting in the workspace folder.
Then I thought maybe I needed to open a "project" file to get things rolling. Opening the .project file yielded the contents of that file in the XML editor of eclipse.
What am I missing here? Is the project metadata not stored in the source tree? Do I have to build project metadata up on every machine that gets a working copy of the source? Is this something wrong with my home Eclipse install? Can someone give me an overview of how they (successfully) do this?
You should be able to do it like you tried. Make sure you have the Android Development Tools (android eclipse plugin) installed along with the android SDK and make sure you set up ADT before you open the project.
Not checking in the bin directory makes sense to me, but I do check in the gen folder and don't have any problems.
Here is what I do to open a project from SVN if the source is already on the machine:
Open eclipse
Click on File->Import
Select General->Existing Projects into Workspace
Or you can also do this:
Open Eclipse
File -> Import
Select SVN -> Checkout Projects from SVN
Follow the steps to get from SVN

Categories

Resources