I used dropbox for my workspace in eclipse. I was working on the code then I lost the connection to the internet for 15 min now Im not able to start the code, I get messages like:
HTTP Status 404 - /DB/register.jsp
type Status report
message /DB/register.jsp
description The requested resource (/DB/register.jsp) is not available.
Apache Tomcat/7.0.23
The path /DB/register.jsp is there, Im in the path right now. And before I was able to start everything there. Whats is going on with eclipse?
Edit: Ok a solution was to create a new workspace, new project, new tomcat server then add code => working. Sad that eclipse is so frail.
Tomcat has become confused. Just restart it.
I'd suggest you to create a new workspace and copy/paste your code in it. Everything should work just fine then.
Related
I am following the eclipse set up from MIT's software construction course1. The installation yields an error and I am not sure how to fix this (pictured below)2. The URL yielding an error returns a 404 error, so I don't know if their site is down or an issue with the package I'm using from MIT. Any advice is appreciated!
Error Message From Eclipse
It seems the update site recently moved to a new location.
If you don't want to contact the course staff directly, you could raise an issue against the relevant GitHub project, suggesting they update the setup file.
In the short term, you should be able to download the file to disk, change the URL (look for a line like <repository url="https://checkstyle.github.io/eclipse-cs/update"/> and change the URL to https://checkstyle.org/eclipse-cs-update-site/) and use the "Browse File System" button in the Eclipse installer instead of pasting the remote URL.
So in the past days i've decompiled minecraft 1.12.2 using mcp to make an "own" client. I ran it from eclipse and all was working just fine. But once i exported it, added the needed JSON file and started it from the minecraft launcher, it resulted the following error:
Exception in thread "Client thread" java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.info(Ljava/lang/String;Ljava/lang/Object;)V
at net.minecraft.client.Minecraft.<init>(Minecraft.java:420)
at net.minecraft.client.main.Main.main(Main.java:115)
In my opinion that'a a bit strange, because when I ran it from eclipse that error did NOT occur.
I was thinking about adding the logger in the specific JSON file for the version but I do not know how to do it. I took the JSON file from a video where I expected my problem to be solved, made some changes, but it didn't. I also put the folder containing the logger-jar (org.apache....) in the client jar, but still no success.
Also i just decompiled 1.12.2 and recompiled it right away to see if i had messed up my code some how.
I hope someone can help.
This means at runtime you have a class that is different than what you had at compile time. You should try unzipping the jar and searching for the class file. It sounds like you need to potentially remove it and replace it with your own version.
Thanks to all who viewed an wanted to help!
Now I found an other way to use it. I wanted to export it to test
it on my server. But instead I used my account credentials to log in directly from eclipse.
:)
I created a new web project on Netbeans. As usual, in order to be sure that everything is OK before coding, I tried to run my project directlywith Netbeans.
For what I can see, evrything is great, except that I have a popin with the followed message : "Cannot run /usr/bin/firefox". A fex months ago, running a project by this way was perfectly good. I don't know what has changed.
What I tired/checked :
The file /usr/bin/firefox exists ;
I give it all the rights (reading, writing, executing) ;
if I specify another browser in Netbeans, the result is the same (of course, the message changes but keeps the same format) ;
My firefox is pefectly running, excpet for that.
I'm currently on Debian and Firefox v45.9.0.
Do you have any idea of what could cause this problem ? Any help is welcome !
Marine
Go to Netbeans menu Tools > Options. In the General Tab, Web browser section tab click edit.
Select Web browser as firefox (I guess it is already like that for you).
On the right hand side, if the text in Arguments section is -remote "openURL({URL})" , bingo that could be the problem.
Change it to {URL}.
Save and try running the project. Hope it works..
I'm working on a little app and retrieving data from a server. In debug mode I can see the properly formatted JSON string is received and stored in my var.
Right after I try instantiating a Gson object ( using Gson gson = new Gson(); it dies on this line)
and it just dies... I can't seem to get any output in log cat so I can't see the exception being thrown. I've just migrated from windows to Ubuntu (64 bit) so it's quite possible I'm missing something in my set up but everything else works fine and I'm finding it hard to trace why it happens...
if there is a force close the stacktrace should 100% show up in logcat.
otherwise this is a simple object construction so maybe check the buildpath for the libraries. also try cleaning the project but your code should be working...
Okay, turns out this is related to a known issue with eclipse and mylyn.
Moving the mylyn.jar files out of eclipse's plugin folder seems to solve the issue.
(Gson object is being constructed fine and I'm making use of it now...exception was unsupportedexception when i was trying to remove items from an arraylist...odd because this is done several stages before constructing the gson object)
Although this was not entirely the same issue (because there was output in logcat...just wouldn't show anything related to errors/exceptions, and that's in verbose mode and others).
More info:
http://groups.google.com/group/android-developers/browse_thread/thread/c64de09595795538/8e577a1e52b26c73?lnk=gst&q=eclipse+19%25#8e577a1e52b26c73
Why doesn't logcat show anything in my Android?
http://code.google.com/p/android/issues/detail?id=1808
Very weird bug, putting the mylyn jars back in the folder and everything works. So the process then:
Open path/to/eclipse/plugin/
cut all *mylyn.jar files
paste them into a temporary folder outside of the eclipse directory.
start/restart eclipse and test that log cat works
All is well? Some feature such as code completion probably isn't working now... Move the mylyn.jar files back to the plugin folder (I'm not sure if it matters whether eclipse is opened or not when you move them back in but it was running when i did it.)
restart eclipse and you should be good to go...
I keep getting this when trying to start a new project
ERROR: Unable to open class file C:\Users\Levi\Desktop\Android\workspace\Droid1\gen\com\androidbook\droid1\R.java: No such file or directory
I tried changing preferences to alter build path to project, but it still wouldnt work,,,
Is subfolder on desktop a bad place to install Eclipse?
Clean works sometimes and should be tried. I also find that blowing away the gen directory and refreshing will cause it be to rebuilt. Try that as well.
However, sometimes even that doesn't work and I've been forced to remove the project from Eclipse and then re-import it. This, unfortunately, works for me every time if the above has not.
Good luck.
Im also getting that error, running a Project->Clean in Eclipse helps for me.
Project->Clean should certainly fix this (unless your resources won't compile for some seperate reason).
I remember that the first time I ran Eclipse (in mid 2009, can't remember if it was Galileo or Ganymede or whatever) on Windows Vista, it presented several problems that were eventually traced to Eclipse itself being in a directory whose path contained a space...
Usually, the above tips (refresh, clean) work for me. But lately I had a very persistant instance of this error, which was caused by something else:
One of the layout .xml files in res/layout contained a reference to a custom view (org.company.project1.MyView). However, I had changed the package path (org.company.project2.MyView), so the reference had become invalid.
Thus, if everything fails try browsing your layout .xml files for invalid custom element definitions.
Cheers
after spending hours trying to ultimatly discover the issue behind the Class Issue not being found, resolved,or directory not there issue....
sometimes yes the issue is due to a bad binary or xml... as sometime a clean will do the trick or a xml edit will solve the day.. when all else fails.... this may do it..
"create a new workspace"
go into the workspace.... and then
Switch to your old workspace... in the newly formed workspace...
this was my silver bullet. so frustrating to not have a solid answer.
using Version: Helios Service Release 2
Build id: 20110218-0911