Register | Log in | Password |

365 projects | 71 services | 215 websites | 1073 freelancers | 2760 topics | advertise


Purchase JoomlaWatch:
30 day money-back guarantee
Read more...
9 EUR lifetime license
Buy Now

15 EUR lifetime license
Buy Now
(nofollow link from sponsors page)

Login:

23.1%United States United States
15.5%India India
7.3%Russian Federation Russian Federation
7.1%Colombia Colombia
6.1%Germany Germany
5.2%United Kingdom United Kingdom
4.4%Poland Poland
3.5%Netherlands Netherlands
3%France France
2.9%Canada Canada

Today: 439
Yesterday: 1586
This Week: 2025
Last Week: 10059
This Month: 8724
Total: 32038

Users

Most active users today from total of 20:
mlewis, waseem, yosua.winata, plaginha, davoided, anewname1, matto, mrits, Contestano, maryswave, NightOwl, artisan, dwlamb, djunykasim, dlaurie, rottenberg, acrucesalus, docklandassist, ravsyn, blueoceancruiser
About JoomlaWatch:
JoomlaWatch is popular joomla visitor tracking and live stats component. It provides several features such as spam blocking, goals tracking, charts, nightly email reports, latest visit map, interactive HTML5 traffic flow graph and many other useful functionalities, which will help you to optimize your site.
RSS Feeds:

rss Freelance
rss Projects
rss Forum
rss Resources

Home
News


RSS for Java
 
JBoss and log4j
 
JFreeChart in an Applet
 
Mac OSX on Intel
 
Extracting a value with Regular expressions in Java
 
Exception in thread "main" java.lang.NoClassDefFoundError

 


A friend of mine wanted to start to learn java, and I wanted to help him, so we created a simple Hello World example.

public class Hello {

public static void main(String argv[]) {

System.out.println("Hello world !");

}

}

then, when you compile it:

> javac Hello.java

and want to execute it:

> java Hello

Exception in thread "main" java.lang.NoClassDefFoundError: Hello

We set the CLASSPATH and JAVA_HOME enviroment variable correctly, and the problem was still the same..

When we copied the Hello.class into a lib directory of JAVA_HOME, it worked, but not from the current directory !

We tried different versions of java.. and do you know where this stupid problem is?

in the CLASSPATH there should be:
CLASSPATH=.;c:\programme\jboss\lib;c:\programme\
j2sdk1.4.2_08\lib;c:\programme\j2sdk1.4.2_08\jre\lib; ...

yes.. a dot .. it means, that it will search for classes bytecode in the current directory !

you can also tell java to search the current directory with the -classpath parameter

> java -classpath . Hello

Problems like this can really discourage java newbies, and that moment was very embarassing :)




Problem:
Basically, the Exception in thread "main" java.lang.NoClassDefFoundError:

means, that the class which you are trying to run was not found in the classpath.

Solution: you need to add the class or .jar file which contains this class into the java classpath. When you are running a java class from the command line, you need to add the dot (.)

java YourSingleClass -cp . 

into the classpath which tells the JVM to search for classes in actual directory.


If you are running a class from a .jar file, you need to add this jar file into the classpath:

java org.somepackage.SomeClass -cp myJarWithSomeClass.jar



 
USB IDE enclosure in Linux - problem solved

I bought an enclosure for IDE devices and I wanted my DVD-RW burner to work when I plug this USB enclosure to my laptop. In windows everything worked well, but not in linux.

After some time, I finally solved this problem.
All you need to do, is to enable the EHCI, UHCI and MASS Storage in your Linux kernel configuration and recompile it.

After loading the new kernel, run the utility usbview and you should see your device there (under the EHCI tab)

I got into this state long time ago, but still did not know what to mount.
Finally, I found it in /dev/sr0 (it's a symbolic link to /dev/scd0).

So, just type:

mount /dev/scd0 /mnt/usb

where /mnt/usb is the directory where the device will be mounted to.

In some cases, it might be also scd1, scd2 etc.. you can find the right device by executing:

cat /dev/s* (experimental, but should list the content of all scsi devices)

Now you can fully use your external IDE drive :)

Enjoy :)

 
Programming and Aikido :)
Me and my colleagues from work started to take the Aikido classes :) It's a great fun, and relax from programming. Aikido is considered one of the more spiritual defensive martial arts, and it uses the attacker's energy. You don't have to be strong, but to have a good technique to manipulate the attacker's power.

If you would like to know more about Aikido, visit this website:
http://en.wikipedia.org/wiki/Aikido


 
Tomcat behind a proxy
Dear God...
"Connection refused..". This seems to be a stupid problem, but I hope by writing this, I can help some beginners which have the same problem.

This happens, when you are trying to access some page from Tomcat and that page is behind the company's proxy.
I found one article which says that you have to add to catalina.properties in %CATALINA_HOME%/conf/catalina.properties values http.proxyHost=... http.proxyPort=, .. etc.

in fact, it did not work, because I am running Tomcat from Exadel Studio Pro..

The final solution is more than simple:
in JRE configuration of Exadel, I specified these additional JVM paramters:
-DproxyHost=my.company.host -DproxyPort=8080 -DproxyUser=matto -DproxyPassword=mypassword

Shame on me, it was so simple ;)
 
RSS for Java
There is a great library for parsing RSS - RSSLib4j.

In my free time I'm working on an opensource JSF component, which you can simply drag&drop into your pages and display every feed you want.
 
<< Start < Prev 1 2 3 4 Next > End >>

Page 3 of 4

no license? questions?

Recommended: (advertise)
Joomlawatch 1.2.17 Demo (PRO: 9/15 EUR)
Download Joomlawatch 1.2.17 (PRO: 9/15 EUR)

Rate this extension ...


Stay in touch:

JoomlaWatch is now available for Drupal as unlocked BETA version for testing: (link)

New article about JoomlaWatch Live Stats feature: (link)
4 days ago from web

Tested versions 1.2.12 FREE, 1.2.17 PRO, 1.2.18 BETA on Joomla 2.5 and older Joomla 1.5 - confirmed to work on both Joomla versions
2 weeks ago from web

Small installer fixes - added JoomlaWatch compatibility with Joomla 2.5
2 weeks ago from web

New article on JoomlaWatch Traffic Flow feature: (link) ... All features of JoomlaWatch will be documented this way.
2 weeks ago from web

Another minor fixes for version 1.2.17 and 1.2.18, added functionality to display only changed values in SEO report - important keyprases
2 weeks ago from web

Minor fixes for JoomlaWatch version 1.2.17 (language files), you can find the latest package in customer zone ((link)
3 weeks ago from web

If you'd like to help with testing of the latest 1.2.18 BETA with new features (Joomla/Wordpress),please add me on skype: matto3c.Thank you!

New article on JoomlaWatch SEO (Search Engine Optimization) report functionality - (link)

JoomlaWatch 1.2.18 is out now! Features new click heatmap feature, SEO report - how people find you on google, and many other improvements

Reorganized the menu items. Now you'll be able to easily find most requested links

JoomlaWatch 1.2.18 BETA now ready! Main features: - Heatmap integration - SEO reports - Anti-spam section visualization (link)

Fixed one issue: no unique visits recorded; PHP $_SERVER['REMOTE_ADDR'] doesn't always return remote IP address! using HTTP_X_FORWARDED_FOR

Christmas Special - 19% OFF from all licenses until 25th of December 2011

JoomlaWatch Heatmap functionality nearly done. Works with all client resolutions. Will be available in next version. (link)

Simple customer zone - (link) is now ready. Users who purchased the PRO version can now download newest version from there.

Because of the problems with payments and forwarding. We are using (link) service to deliver you the files after purchase.

Tracking Expenses from SMS android application is now published on android market :) and it's completely free !

(link) user information now protected with UserCrypt 1.1

UserCrypt version 1.1 released: Added query log, jos_users decryption on database interceptor plugin deactivation (link)



Partners:
Freelance ColdFusion, Flex, PHP

Olejomalby, abstraktne obrazy

Camping Europe

WinAsm Studio

Vyšné Ružbachy

Sochy, Reštaurovanie

R.E.M.

Valid XHTML 1.0 Transitional

RSS feed:

Statistics:
Search Engine Genie Promotion Widget
Privacy policy | Advertise | Donate

Locations of visitors to this page


©2003-2010 Codegravity.com