Eclipse doesn't place the classes in the bin folder anymore - java

I was making a game for school, and it works all and stuff but now I have a big problem.
I wanted to add doors, and keys. I finished the door part and wanted to test it. It didn't work. It's not about the code, everything is fine. I saw that my classes were not build in the bin folder.
the bin folder of the program:
http://speedcap.net/sharing/screen.php?id=files/37/bf/37bf1527e7a2028bfaf9188e9571c465.png
The classes (in Eclipse):
http://speedcap.net/sharing/screen.php?id=files/38/a0/38a0f0e0a3b376c40d7689bc0e6a23aa.png
Also as you can see, in eclipse there is a "!" on top of the project.
Now the problem is: How do I fix this?
Any help would be appreciated.
Greetings Carolien.
EDIT:
I got everything fixed now thanks for helping (feeling really dumb now -_-) it was something with order and export (still dont know what but i clicked select all and suddenly everything was fixed)

Is there a specific reason for moving everything to the res folder? You might need to move everything back into your src folder. Also you should check the box in the build path "Allow output folders for source folders".

Related

Eclipse Project Wont Work After changing to executable jar file?

i have been having a problem for a while where when i export my eclipse project into an executable jar file it wont run correctly. I think the resources folder is the source of this problem but i'm not sure, because all that happens whenever i run it is the JFrame pops up. for some reason i cant take screenshots because my computer is a piece of crap, but I've shared what i know. thank you, all help is much appreciated!
UPDATE:
this has been tagged as duplicate, but i have tried their methods and it wouldn't work. i need instructions specific for my situation.This is the link to the picture of my file explorer took a little while back when i had the same problem, because i cant take the picture now it is not up to date.

Eclipse keeps creating eclipse\.eclipseextension\feature folder in my Download folder on startup

I don't know what happend, but when I recently installed Eclipse Mars (4.5.2) on my new PC, whenever I start it, it creates an empty folder structure in my Download folder, and I can't seem to find anything in the settings to dissable this. Anyone know what caused it, and how to remove it?
The exact path is:
"...\Downloads\eclipse-jee-mars-2-win32-x86_64\eclipse.eclipseextension\features"
Apparently in the p2 directory are 2 files (pool.info and profiles.info) which refer to the first use path.
Deleting those 2 file put a stop to the issue for me.
Since I don't know what they are meant for, I can't really advise you to delete them, I can only say it worked for me.
In the eclipse folder, find p2 directory where the (pool.info and profiles.info).
I just opened them with notepad and edit the path to match my eclipse folder path. Will need to use a little common sense, so gear up your thinking cap.
That fixed the problem for me. Ran eclipse and closed out with no problem.

Jar file does not work after renaming classes?

Typing this from my phone as I got off my computer and am about to go to sleep so please ignore typos. Anyway I have a project I was working on that makes a jar file that allows me to config some things and then build a new jar file with what I set. I decided I did not like the class names for the builder and the output file, so I changed them (just changed com.john to com.epix type of thing) and updated all required things. The builder can be built and ran perfectly fine, and the output file can be built from eclipse and ran perfectly fine, however now when I try to build the file using the builder it tells me "main class not found" when I try to run the file. The thing that is really bugging me is if I pack the jar file my self (putting the nessesary files into a zip then renaming it to a jar) it works, which is where I get confused as its packing the same exact files. I assume there to be something wrong in the builder itself but the only thing that changed code-wise were just some imports. Has anyone else encountered this type of problem or know a fix? And yes I set the main class in the manifest and class path. Can't paste any code right now, as previously stated am on phone. Any ideas would be greatly appreciated, I have been scratching my head for the past 4 hours.

files missing from src folder (Jboss/eclipse)

In JBoss (Eclipse) I am having a problem with my src files showing up in the src folder in the package explorer. As you can see from the picture on the left there is nothing in the folder for test, and no java files under main, but webapp. For example though I went to where the files are stored and show you that there are infact tons of files inside of the test folder. Any idea how to get them to show back up in the Package explorer in eclipse?
edit: srry forgot pic
In Eclipse, make sure the filter is not turned on to hide types of files you're looking for. Under Package Explorer, click the small down arrow to the top right of your listed projects. In that list, select Filters... then make sure you're not filtering out the files you're looking for. Checked items are hidden from your view.
Otherwise, the picture you've said you posted, I can't see. So I'm sort of guessing what the problem really is here.
EDIT: OK, I see the picture now.
Java files are shown under src/main/java at the top of the package explorer. If you right-click the project name, select Build Path -> Configure Build Path... and select the Source tab, you can see which folders have been designated as containing java source files.
Files in those folders will have been filtered out from the main "plain" type folders. Eclipse treats stuff marked in "source" folders differently. Mainly, it will attempt to compile java files it finds there.
Solved it, It was just that I was in regular Java perspective instead of the JBoss perspective. Honest silly mistake. Thanks for the replies though!

Why is there no manifest.mf in the “dist/” directory and why is jar file not working?

I'm new to NetBeans and I cannot find the MANIFEST.MF that this link tells me there should be when I click "Clean and Build" in the IDE.
However, I only see a .jar file and a README.TXT. Anyone have any idea about this?
I am completely new to NetBeans, so simple terms would be much appreciated!
Also, when I run my project in the IDE, it creates and displays a jFrame but when I double click the jar file, nothing shows up. I have done setVisible() and I have set the default close operation, so that is not the problem. When I was searching for an answer, I found out that this could be because I did not specify my main class in my manifest. So this may be tied in with the top question so that is why I am combining these two questions.
Thanks in advance, guys!
I am using NetBeans 7.2 Beta
I realised that the manifest.mf file is not located in the "dist/" directory but in the root directory of the project. I am able to locate it now. However, I am still unable to figure out why the jar was not working. It is working now. Maybe my machine was just acting up or maybe I was using up too much RAM so my computer did not want to run another program? Anyway, everything is solved now. Thanks for everyone to answered!
Extract the .jar file using WinRar and then check inside the META-INF folder for MANIFEST.MF.

Categories

Resources