Imre Tokai

Ranch Hand
+ Follow
since Jun 04, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Imre Tokai

Hello,

Pushing http://hsqldb.org/ to limits like noted in topic title and getting

hsqldb-import.sql

.rc file


Eclipse->Run Configurations->Arguments


It works as expected for 1000rows large file.
Any guidelines how to configure HSQLDB for 25 000 000 rows import? Have 16GB machine here.

Regards

PS
https://sourceforge.net/projects/hsqldb/forums/forum/73673/topic/8716091
11 years ago
Hello,
Encapsulating config.properties file in .exe and assembling all as installer is also an option.
Any experiences? Which (non-commercial) tool would you recommend?

Regards
11 years ago
Hello,
Found this old thread and it might turn out useful...

So OneJar generates executable jar (involving other jars) together with image-icon from the resources, as expected

Further, does anyone know how to setup, read and update a config file for OneJar? Where to put it exactly and how to reference it? getResourceAsStream should be used, i guess, but how?
http://one-jar.sourceforge.net/index.php?page=documents&file=faq
Posted also on:
https://sourceforge.net/p/one-jar/discussion/380843/thread/0c9353a4/

Regards

P.S.
Don't want to miss-lead with below unsuccessful tries:
11 years ago
Thank you for your valuable reply based on latest version of Java, Abhay!

It works, but found limitation as it seems that file extension is analyzed. So if you change extension it will display type based on extension, no matter what file's content is.
Have found Apache Tika
http://lucene.apache.org/tika/


It works based on content, no matter what extension is.
What will examine further, is how to distinguish .csv, pipe-delimited, TAB delimited content on the most elegant way as they're all recognized as text/plain. Opening them and parsing, is an option

Regards

P.S.
Thanks for you critics Jeff, will try to do more accurate research. If you find topic low-level post solution or ignore it please. There might be others who are interested, so I'd expand it further
11 years ago
Sure, but that hasn't brought solution, yet
If you have any precise guideline on how to solve this in Java (except of file extension examination), share please

Regards
11 years ago
Hello,

How to determine the type of file?
So aim is to distinguish targeted file's type (.csv, .xls, .txt...) according to it's content

Regards
11 years ago
Hello,

How to create contact card in Outlook via jacob-1.17-M2-x86.dll
Have been trying combination of below commands, but no success, for now http://www.land-of-kain.de/docs/jacob/

Any idea?

Regards
11 years ago
Appreciate your fast response(s) a lot!


http://one-jar.sourceforge.net/index.php?page=getting-started&file=quickstart
When I walkthrough the Command-Line Approach guidelines, I get one-jar.jar that contains only META-INF folder? What am I doing wrong?
Can anybody share precise guidelines on success generation of 1 jar, please?
What if additional resources are involved (images, i18n, internal DB...)?


Regards
13 years ago
Thanks, experience with OneJar is welcome!

Which file to download?
http://one-jar.sourceforge.net/index.php?page=downloads&file=downloads

How to put this together? What commands to use?
myapp.jar
mycomp.mypackage.RunningClass
dependencies:
swing-layout-1.0.4.jar
myutils.jar


Regards
13 years ago
Hello,


How can I put couple of jars together in 1 jar file?

That would be OneJar or UberJar, if I had the source code, but i don't have it in this case

main.jar (here is the main class)
dependant_jar1.jar
dependant_jar2.jar
.
.
.


Regards
13 years ago
Hello,


About to resize JTable's header and when
getTableHeader().setPreferredSize( new Dimension((int) treeTable.getColumnModel().getTotalColumnWidth(), Integer.parseInt(heightP) ));
it does resize, indeed.
But there are side-effects that affects the text in whole table: different font/size...

Tried with examples I've found around but non of them work so far

Any idea?


Regards
13 years ago
Hello,


How to submit POST parameters and open URL in browser?

For trivial URL, i use

and works properly

How to submit params as in .jsp page?



Regards
13 years ago
Bought certificate that's good for 1 year and rented secure hosting for 1 month at DreamHost

Got from them a content of file that i saved in dreamhostcert.crt, sg like:


How to setup tomcat with it now?

So far, i've used self generate mykeystore.ks file and in server.xml


How to generate keystore from certificate file that i got from DreamHost? I'll need to trust other certificates in that keystore later


Regards
14 years ago
Hello,

Have a .jar file and there is a class (with private constructor -not able to inherit) in it, where log4j is configured from code:
Not able to modify that .jar
Is there any chance to inherit (somehow) that class and to replicate method that contains log.setLevel(Level.ERROR) or to do sg else with that .jar so it will make possible to configure Log4j from log4j.xml?

How to override Log4j configuration in code with log4j.xml?


Regards
14 years ago
Initial issue has been solved on other forum.

New question:
Is there a way to select language from drop-down instead of links?


Regards
14 years ago