Jamy Spencer

Greenhorn
+ Follow
since Jul 10, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jamy Spencer

The whole design of Java is to make platform independent bytecode files (.jar) that can be run on any computer that has a JVM. This way you can compile your .jar on your microsoft system, email it to your friend who has a Mac and he can run it as long as he has the JVM installed on his Mac. That may not seem important to you in the context of your project but it is a major design consideration for other people which is why Java is such a common language.

My recommendation is to create a directory where you make batch programs that make your life easier at the command line, put that directory in your Path so it will get checked no matter which directory you are in. Then when writing the batch program fully qualify the location of your jar. Also if you are just doing a one off temporary project you can also just hit the up arrow to reenter the last command used.

One thing you need to realize as a programmer is that there are all kinds of tools that are available. They all have their strengths and weaknesses, its pointless to complain about your tools, you can either choose a different one, learn to use the current one better or design a new one. If you decide to learn a different one you will most likely find that you just really traded one set of things you didn't like for a different set of things you don't like.

Also if you are just doing a one off temporary project you can also just hit the up arrow to reenter the last command used.
4 months ago
The point of Java is to produce usable interfaces with databases, typically to serve up searchable lists of items, e.g. the web-store or the CRM application. There is a big disconnect between programming in the classroom where even the most complex assignments are typically less than 1000 lines of code. In the workplace there might be a project that has 10,000 files using 5 different major frameworks written over 20 years that hits 3 of those projects just to login.

C or C++ is a completely different language intended for efficient processing of information. As far as I know the only real use is in industry is for programming OS's, compilers and low level dedicated systems.
4 months ago
Try using postman for testing. Use a form with method attribute set to POST for production.
4 months ago
I think the issue may be that your 2nd update is in a return statement, this may be preventing the commit that jdbc does automatically behind the scenes. It is typically not a good idea to put return statements in try catch blocks because it interrupts the intended flow...in this case your cleanup code will only run in the case of an exception.