That also returns blank, so does typing sudo before it. I have done a lot of searching for that error message, i have tried changing the port number to something other than 4848.
The other problem...
Type: Posts; User: wdh
That also returns blank, so does typing sudo before it. I have done a lot of searching for that error message, i have tried changing the port number to something other than 4848.
The other problem...
unfortunately that returns nothing as well. I have read it could return this error if the hostname does not resolve to an IP . . . .
Not sure how to check this though.
Sorry that was a typo. It still returns nothing.
I play around with a few netstat commands. Apparently this should show processes using a particular port
netstat -an | grep ':4048'
I tried this and it returned nothing. I am using a mac by the...
I am trying to set glassfish up to create some java servlets.
I can navigate to the correct folder and if i enter asadmin everything is fine.
When i enter start-domain i get this error:
asadmin>...
Problem is sorted now. I was changing the colour but not repainting the component. I have added the extra line and it is fine now.
Thanks for the help!
Ok this is my new circleComponent. I think it is working to some extent. When i drag it onto my frame the colour changes. But still when i press the JButton it does not change.
package...
I have a few questions, i am sure they all have simple answers but i just cant seem to get them working right now.
First problem. I have a circle class, i then have a CircleBeanComponent that i add...
Ok this problem has confused me, i will outline what the program does first before i tell you the issue i am having.
I have set up HSQLDB i have created a program which reads from my...
It is a file, Yes i have also tried jbdc.url=jdbc:hsqldb:file:myHSQLDB
But this comes up with the same result. I have also tried using a full pathname but again this returns the same result. My...
I still have no luck with establishing a connection.
All files are layed out below, I am following Horstmann's example to establish a connection.
database.properties
...
Thank you, I think I may have spotted my mistake after looking through that link. I will update here tomorrow when I have chance to edit and test the new code.
I have used what you suggested, when trying to connect to the database however, i get this error.
Exception in thread "main" java.sql.SQLException: The url cannot be null
at...
jbdc.url=
jbdc.username=
jbdc.password=
jbdc.driver=
I am creating the .properties file with the details to access the database, i am just not to sure what should be in the url and driver...
I am trying to connect to HSQL database using jdbc
I want to create a properties file with url, username, password and driver.
I am not sure what to put for the url and driver though, is it just...
Sorted! seems so simple now, i now re set the iterator and it runs back through the list until sorted.
Thanks for all the help Norm.
I had another look, ive found circular linked lists which points the last node to the first so it keeps running through, that would help me to keep running through the list but in my head i imagine...
Sorry, dont understand what you are saying . . .
Currently its the same as below. If the current date is before previous then sorted = false. It still only runs through the list once though, im not sure how to get it to run through until all...
Im still not sure how to get this to loop through again. I set the boolean sorted to false if the if statement comparing the dates is true. I also have to set the boolean sorted to true at some point...
Ive added a temporary assignment to hold the previous element, and them im setting that element at the current index. Ive updated my code at the top of this page, the output shows that its working...
Thank you, that makes it clearer. So im setting the previous index to the correct date, but them im setting the current index to the same as the previous.
in orderSort()
date - is the previous date in the list
dateCheck - is the current date in the list
so dateCheck should be the date the iterator is currently on and it checks to see if it is...
Sorry its a bit of a mess, i usually seperate them into seperate files. It compiles and runs in the same way as before though.
import java.text.ParseException;
import...
I realised i hadnt assigned anything to the boolean sorted so it would never break and print the assignmentList. Changed that now and the printed assignmentList is very wrong. I just have two of...