I have a big project that has several classes running together. I'm not sure how I can post it on here but basically i'm running into this NoClassDefFoundError. I have like 20 Classes in this Java Program, pretty basic stuff for you guys its a ShoeStore and BookStore. I just don't get whats happening, and i'm unsure of how to post it all for someone to look through it and see what is going on because I am totally stumped. I have no idea why this is happening to me now I've never had this problem before.
Can anyone help me? I'm pretty sure you need to see the whole program just to know where i'm running into issues.
I apologize for not having the code here, but i'm just unsure of how to proceed as I think this effects the entire program and its classes
I have commented below on my situation. I've gone through all my classes and I don't see anything misnamed but I could be wrong, doesn't seem to help that other article for what i'm seeing.
"java.lang.NoClassDefFoundError: Could not initialize TestAssignment1 at java.lang.Class.forName0(Native Method)" is what its saying to me " this is what i'm seeing
It turns out I just initialized the HashMap completely wrong and I didn't even notice. Thank you for your help guys, pretty impossible thing to figure out without the entire code
Related
I'm trying to learn how to make a 3d game engine in java following the tutorials from ThinMatrix (loving them so far). The problem is that one of the libraries from slick-utils seems to be missing? or corrupted? or not supported? I don't really know and I'm a total begginer in LWJGL, OpenGL and big java projects. I searched the error and nothing seems to work or the solutions are too problem specific, ie. related to an error in the coding rather than in the libraries.
There's not much code to show, I add the import in the class and the IDE prompts me with the error on the title: "The type org.newdawn.slick.opengl.Texture is not accessible".
On the comments of the video there was a "solution" that seems to have worked for at least 5 people, but for some reason it doesn't work for me.
The problem in the solution code (that avoids using slick-utils) is that there's a MemoryStack class that I can't seem to find anywhere, I serached the text that the IDE prompts me but it was fruitless...
This is what I searched for: "MemoryStack cannot be resolved", and for the life of me I can't find how to import, resolve, or do anything, really.
I'm really frustrated and google isn't my friend today, it seems.
I think there may be a problem with the LWJGL libraries that I'm using (I don't remember if I'm using LWJGL2 or 3, I believe 2 because the tutorials are from 2014 and 3 didn't exist yet? Idk), but I can't figure out what's the problem and all the hints that the IDE trows at me are leading me to flat out dead ends.
Thanks so much for reading, and helping me if you can! I can show the code but I don't think it matters that much, as the problem seems to come from the slick-utils library being corrupted or something, or that I don't understand how to add it properly to my project.
This should be the minimum reproducible example:
import org.newdawn.slick.opengl.Texture;
This is the first question I make so feel free to tell me if I'm missing something or whatever! :)
It's often the case that googling specific parts of a new error message will find other people who have had the same problem. When I google that class name, I find someone who had the exact same problem that you did, many years ago. The thread shows where to find the library which has that class.
https://gamedev.stackexchange.com/questions/35047/where-can-i-find-the-library-for-org-newdawn-slick-opengl-texture
I am currently taking intro to JAVA. I am having trouble putting everything I am learning together to complete my assignments. When I read my assignments for class half the time I don't even know where to start but I feel like I am understanding the materiel. I don't know if I am just over thinking it but it is starting to frustrate me a lot. For example I completed one of my assignments and then google it to see if I was right even though it complied and ran. The one I found had more lines of code then me and I wasn't sure if I left something out or why they had more code.
Do you guys know of any resources I can use to help me understand how everything works together I guess. I read my text book, search youtube, and read the fourm. I am just having a hard time picturing the program before I start.
I don't know if this is normal or not and any help would be great....
thanks guys
So I downloaded net beans C and C++ pack, and when I first opened it, it showed this warning message:
It works, but I want to fix this problem because it might do some problems in bigger programs I will create.
I have also tried to go to the link that was in the warning message that I posted here, but I really did not understand anything in there so it didn't help at all.
So if anyone knows what the problem is, and how to fix it, please tell me.
I have pretty much zero experience setting up servers, but currently my job is to set one up (don't ask why). It's an an apache-tomcat6 server.
I followed some instructions step by step, and when it came time to test that everything was working, here's what I got:
I know this is a bit of a shot in the dark, but does anyone know what I can do to fix this?
Please let me know if there's any further information I can provide to help!
you're missing CertificateAuthInvalidCertException class in your classpath.
Add it to tomcat / application
Hi guys i would like to do something that sounds simple enough. but i have no idea where to start looking.
i have search Google a bit and haven't found anything related to what i want to do.
what i want to do is run a java application in debug, and print out the lines of code that run in the debugging process.
same as with going through code step by step, each step will print the line of code it stepped into.
i really have no idea where to start looking of how to so this. can someone help in giving me a direction.
thank you.
this is following another question (maybe i wasn't clear enough last time and didn't get a response)
https://stackoverflow.com/questions/5506367/is-there-a-way-to-tap-into-eclipse-debugger-with-an-addon
What you describe sounds pretty similar to what the Eclipse code coverage tool EclEmma offers. It shows you exactly which code is executed during the process it is monitoring.
It sounds like there is a problem you are trying to solve with your proposed solution though. What is the underlying problem?