Tiju Thomas

Greenhorn
+ Follow
since May 25, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Tiju Thomas

Ram Kumar Subramaniam wrote:Hey Siva,
Its 2010 now and I am curious to know if you made that career shift and let us know your experience.
Regards,
Ram



Many people ask about how their shift from Java to SAP will become, but never care to come back and share their experience.
14 years ago
I actually wanted to open a url in the default browser when I click a JLabel
14 years ago
I am getting the toString() method return an exponential value for most values in a Jtable column whose column type needs to be a String.class

But the same toString() being set to a JSONObject to display over a jsp works fine !!!

Could I be missing on something?

I forgot to add that I cannot use the toPlainString() as I am on 1.4
14 years ago
from bottom up....

no c for long time
think bold
life after death
backward glance
he is by himself
6 ft under ground
ne'on' light
2 degree below zero
tricycle
crossroad
reading between the lines
i understand
14 years ago
Just a thought..will it be nice if we give points / ratings for answers in posts like the curl developer forum..
http://developers.curl.com/community/blogs/curl/blog/2008/05/02/what-belt-are-you
14 years ago
Thanks much Maneesh, I could open the file using the above code.

I have seen the same code somewhere else but was not sure if this was the right way of openning a file through swing.

Anyways, thanks for the help.
14 years ago
Unfortunately, my client requires the project to be run on 5.0. Any other go?
14 years ago
I have used the com.lowagie API to create a .pdf file in the workspace. How can I open it up in the acrobat reader and show to the user who is inside a swing application?
14 years ago
Exactly Tim. Both the files are on the D drive. But I am able to read the db-schema but not the db-data alone.

database-write:
Jan 13, 2010 11:41:08 AM org.apache.ddlutils.task.DdlToDatabaseTask readSingleSchemaFile
INFO: Read schema file D:\Workspaces\SLDownload\SS Download\src\db-schema.xml
.
.
.
INFO: Executed 81 SQL command(s) with 0 error(s)
Jan 13, 2010 12:01:07 PM org.apache.ddlutils.task.WriteSchemaToDatabaseCommand execute
INFO: Written schema to database

BUILD FAILED
D:\Workspaces\SLDownload\SL Download\src\ddlutils-ant-build.xml:27: Could not parse or write data file D:\Workspaces\SLDownload\SL Download\src\db-data.xml

I tried deleting the contents of the db-data.xml and then running the script, but still !
14 years ago
Thanks all for the info..I have not got any urls specifically like D:\

Might be I have to give my database url or the outputFile diffrently?

Here is my build file..




But one thing I cant figure out is why this builds fine when I run it through the ant console manually and not this way.
14 years ago
Thanks much Ulf. This defenitely helped.

But I do not know why I am getting a

BUILD FAILED
D:\Workspaces\SSDownload\SS Download\src\ddlutils-ant-build.xml:27: Could not parse or write data file D:\Workspaces\SSDownload\SS Download\src\db-data.xml

due to

org.apache.ddlutils.DdlUtilsException: java.net.MalformedURLException: unknown protocol: d
at org.apache.ddlutils.io.DatabaseDataIO.writeDataToDatabase(DatabaseDataIO.java:730)

This error I do not get running the build file directly!!! I am trying to migrate a database using the DDLUtils API inside the ant build file. Any tips?
14 years ago
Hi..

I wanted to execute an ant build file from java code using the org.apache.tools.ant.Project APIs.. Even though I was able to run the ant script successfully through the ant perspective of the IDE, I am getting error calling the script from java.. Not much information is available in using Project project = new Project(); project.init();..

Could anyone help me find more information in calling an ant build file from java code?

Thanks,
Thomas
14 years ago
How do we give hyperlinks in swing? Like the in html (anchor tag).

15 years ago

Scott Selikoff wrote:If you use the meta data API, you can read a database and create a file of SQL create/insert commands,



Thanks much Scott. How exactly we can create a file of SQL from the metadata? Do we have any code sample over the net anywhere?
Is there any java utility to programmatically copy a database to another (say from sqlserver to derby)? I found org.apache.ddlutils but it suggests using ant. I wanted to do it programmatically using java. Any idea is helpful