Nathan Milota

Ranch Hand
+ Follow
since May 01, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
2
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nathan Milota

Thanks everyone.  I'm not sure when she will have a chance to try it again.  What I'm likely going to do is try and fix it for her on her computer next time I see her if she doesn't make use of the JarFix to see if that solves the problem.
4 days ago

Matt Wong wrote:ok - so I de-compiled you code - found this:

even if it's only running on localhost - at least run mysql_secure_installation and set a root password
further: you can remove any line of this

mysql driver is JDBC4 complient - this means, as long as its in classpath it registers itself with serviceloader - no need for Class.forName()
current driver is v8 - wich is com.mysql.cj.jdbc.Driver - the v5 you use is obsolete
you wasting lots of database resources - as you open a new connection on every request - but never proper close them - that's not how to do - if you want to use a sql-database you create ONE and only ONE connection at startup and close it cleanly at exit - also each resultset and statement has to be close as long as you don't use try-with-resources wich uses autoclose

i dont know lic4j - but is it right that some master-key is in source?



from DNSSEC i know 03 010001 is for 65537 - but this SHA512withECDSA cofuses me - what strange kind of format is this?

overall - very advanced project with beginner mistakes somewhat not matching the question



The reason this project has a lot of beginner errors is because I started making it as a beginner, so if you start going through the code, you'll see that many of the methods seem to be more advanced with less coding errors than others.  I am not planning on going back and changing every method to make it cleaner code, as one class has over 2000 lines of code on it.  

The main reason is why the Jar won't open by clicking on it, and the JDBC or licensing class has absolutely nothing to do with that.  She won't be using the database portion of it.  That's just after I start a web service, I want to have this as an option to add people to it.  
4 days ago
Thanks for the suggestions on the database, but that is all irrelevant to the post, because that's not what is keeping it from opening properly.

I already know the problem is the class not found exception, but I'm just trying to figure out why it is not opening on that particular computer when it opens on every other computer I've tried it on.  

I only wanted to use dos to see the error, but if she has to go into dos and type in a bunch of text every time she uses the program, she will probably lose interest.  I'm trying to figure out how to get it to open with a click of a button on the jar without any errors, as this problem is not happening with any other PC.
4 days ago
Originally, the problem was she asked me how to actually open the program, which I was kind of surprised, as all you do is click it.  However, she didn't have Java on her computer, which I was a little surprised as to how she has even been able to use her computer for much of anything without Java on it.  Then, it turns out she only uses Firefox, which doesn't use Java.  When she downloaded Java, she downloaded and updated to the latest version as many times as possible, and now she has everything on her computer that she needs to run any Java program, and is now getting the class not found exception when trying to open it.   Her computer is so far the only one of many computer that have not been able to run the Jar, and she is the one that needs to use the program for our camp.
5 days ago

Daniel Demesmaecker wrote:It runs on my computer... Why are you us a textfield to select a date? I asume it's maded with javaFx or swing?
Stupid question, but... She has java installed right?



It was made in Swing.  It was more a program I made when studying the basics of programming figuring out how the functions work.  I'm not doing improvements on it beyond what it has, as I'm going to be reforming it into a web service soon.  
5 days ago
The error is in the picture here.  The command used is rather irrelevant though, as it has the same problem when clicking on it as well, but the black screen terminates before she can read it.
5 days ago
Okay, so I had her run the file from the command prompt, and it is getting a error that it cannot find or load the main class.  Class not found exception.
5 days ago

Paul Clapham wrote:

Nathan Milota wrote:that black screen error



Could you be a little bit more specific?



That's really all it is.  A black sscreen pops up, and it closes a second later.  Nothing specific.
5 days ago
I was wondering if anyone can test this out to see if it is working on their PC, or if for some reason it will only open on mine because I have all the files on my computer I used to create the program with.  My friend is an assistant director at our summer camp, and needs to use this program I created, but she cannot get it to open and we've tried multiple things.  Before the problem was she just didn't have java downloaded.  Now, she has everything of the 64 bit Java on her Windows 10 PC, but it is just opening a black cmd screen and closing before she has time to read it.

It's worked on other computers I've tried it on.  If you have time, you can go to the link and open the runnable jar on here and see if it works on your computer, or you're getting the same problem. https://www.dropbox.com/sh/n4zi7gttumtyxr1/AACke0J4-BP0rc5-ltRUe58Ra?dl=0

If you don't have time to try opening the file, do you know what would cause one particular client not to be able to open a Jar and have that black screen error come up?  The runnable jar just has to be in the same folder as the lib folder where all the libraries are, but it simply won't open for her.  On 99 of 100 other computers of people using it, it works fine, but I don't know what to tell her.
5 days ago
I got it to work somehow after copying and pasting the entire declarations.  I'm not sure what I typed differently.
6 days ago

Paul Clapham wrote:Here's what the actual Spring documentation says that the <beans> description ought to look like this:



You'll notice that the URL which Campbell commented on is different here; and yes, this one is a real link which points to a schema on the Spring site and yours isn't.

There's a lot of tutorials on the web. Some of them contain obsolete information and (horrors!) their owners haven't fixed that problem.



I copied and pasted it exactly from the website you linked, and it still gives the same error.
6 days ago
The error is on line 4.  It was a YouTube video introducing Spring concepts.  Any idea what's wrong?  What does it mean declaration of element beans?
2 weeks ago
This is why I stopped doing college courses on programming.  If you are asked to do an assignment of which you never learned how to write methods first, it's a bad course.  

Every method except for void has to have a return statement of the type of value you are writing.
2 weeks ago
I can't figure out where the error is coming from and don't even know what it means.  I am typing it the same as in a tutorial I am looking at.  

2 weeks ago
The MySQL would simply be used for importing the camper names and what cabin they are in.  I can use another database type to save the state of the activity assignments.
2 weeks ago