Alejandro Barrero

Ranch Hand
+ Follow
since Aug 01, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
1
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 Alejandro Barrero

There is an easy solution. Do it with Eclipse -> Export using the option "Runnable JAR file" instead of plain "JAR file".
Yes, I create the jar file with Eclipse. I imagined that since Eclipse compiles correctly to run "As a Java Application" it will create the jar file correctly, but surprisingly it does not. Creating the jar file with Eclipse, I don't see any option to specify classes or jar files. It appears I have to create the jar file myself; I an exploring information on the Internet, but any information or links that you can give me will be a great help.
Thank you for your replay Paul. I created the jar file in Eclipse and it does have a MANIFEST file specifying what is the Main_Class.  I cant specify the class with the the package from the jar file. Could you please explain how do I specify the class when I am creating the jar file?
This is the code that I use to get the connection:

The code works perfectly in Eclipse running as an application or debugging; It has worked for more than a year. The problem I have is that I am getting in the line "Class.forName(driver);" running the code in a jar file. I am mystified; how could the virtual machine know that it is running code compiled for Eclipse or for a jar file compiled by Eclipse?
For years I have been using in my programs statements like "SELECT * FROM user WHERE user_name=mgr", but I just learned that nowadays I have to use "user_name='mgr'". Now I am trying to verify that I also have to use "'" for Date and Number; the following code is giving me the error
net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::4.0.4 user lacks privilege or object not found: DATE_CREATED
I am getting the same error if I don't use "'".

Similar code works fine for strings.

Thank you Tim; "user_name=mgr" has been working for years, but nowadays I have to use "user_name='mgr'", which I learned from Knute. I wish here was a way to continue using the old code.
I am working on my personal computer and nobody else uses it. I think that Microsoft made the changes and my computer updated itself.
Thanks for your reply Knute; The application has been working as is for years, apparently Microsoft has made changes and my computer has just received them. It is regrettable that I have to change many lines of code, but I can make it work again.
I have been using UCanAccess for years in a Java application, but recently I have getting  an error with a Select statement:

net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::4.0.4 user lacks privilege or object not found: MGR

The following code is not from the application but gives the same error. It appears that the problem is with the value "mgr" because "SELECT * FROM user" works fine. The code has been working for years; I started getting this error two days ago. I have not been able to find any solution in the Internet.
I have been using UCanAccess for years in a Java application, but recently I have been getting  an error with a Select statement:

net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::4.0.4 user lacks privilege or object not found: MGR

The following code is not from the application but gives the same error.

It appears that the problem is with the value "mgr" because "SELECT * FROM user" works fine. The code has been working for years; I started getting this error two days ago. I have not been able to find any solution in the Internet.
Solved; the Maven files in my computer were wrong. I had to delete folder .m2 in my hard drive.
4 months ago
In my STS I only see:
Web
Reactive Web
Rest Repositories
Rest Repositories HAL Browser
HATEOAS
Web Services For SOAP
Jersey For Restfull Web Services with JAX-RS
REST Docs
Vaading

Maybe I have to use Jersey, although I don't care for JAX-RS, but I don't see anything for JASON.
4 months ago
It doesn't show how to select the dependencies in Spring Initializr; it just gives a pom.
4 months ago
I am creating an application with Spring Starter project and I am selecting 'Web' as a dependency; I cannot use @RestController in a class. The same problem happens if I use Spring Initializr. I have tried additional dependencies like 'Web Services' and 'REST Docs' to no avail. I am new to Spring Boot and I have faille to find a solution in the Internet
4 months ago
Please forgive my ignorance; I understand then an SSCCE is a "Short, Self Contained, Correct (Compilable), Example"; the code I added is not short but it is a "Self Contained, Correct (Compilable), Example"; please explain how I can modify the code presented to make it acceptable for review; is it acceptable to present only the methods that use the JCombobox?
4 months ago