Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

hari nath
HI ALL,

When i execute my login code it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("https://www.google.co.in");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at Goto.login.main(login.java:9)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9ed429bf-6bc2-43be-bd7a-e26bb85a18aa%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

Avikash Gorka

On 20 December 2013 11:57, hari nath <[hidden email]> wrote:
it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("https://www.google.co.in");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function

Check your classpath

Thanks & Regards,
Avikash Gorka


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMTbUYjuoe7M07uz8aWH_vf_RSR1bNv3KibeCxPd6rB%2BpJJ5LA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

hari nath
In reply to this post by hari nath
Every thing is correct................

On Friday, December 20, 2013 11:57:15 AM UTC+5:30, hari nath wrote:
HI ALL,

When i execute my login code it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("<a href="https://www.google.co.in" target="_blank" onmousedown="this.href='https://www.google.co.in';return true;" onclick="this.href='https://www.google.co.in';return true;">https://www.google.co.in");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at Goto.login.main(login.java:9)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

Krishnan Mahadevan
You are having a clear cut problem of missing jars in your class path.

How have you added up the selenium jars in your classpath ? Is this a maven project ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:46 PM, hari nath <[hidden email]> wrote:
Every thing is correct................

On Friday, December 20, 2013 11:57:15 AM UTC+5:30, hari nath wrote:
HI ALL,

When i execute my login code it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("https://www.google.co.in");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at Goto.login.main(login.java:9)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

hari nath
i just added throw external jars.


On Fri, Dec 20, 2013 at 12:49 PM, Krishnan Mahadevan <[hidden email]> wrote:
You are having a clear cut problem of missing jars in your class path.

How have you added up the selenium jars in your classpath ? Is this a maven project ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:46 PM, hari nath <[hidden email]> wrote:
Every thing is correct................

On Friday, December 20, 2013 11:57:15 AM UTC+5:30, hari nath wrote:
HI ALL,

When i execute my login code it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("https://www.google.co.in");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at Goto.login.main(login.java:9)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Thanks & Regards
   HARINATH.S

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

Krishnan Mahadevan
Hari
Responding back with bits and pieces of information only delays the process of you getting a helpful answer.

So lets start from the scratch:

What version of Selenium are you working with ?
What are all the jars that you downloaded and added to your classpath ?

Please add as much context as possible to your question to help you get a speedy answer.





Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:54 PM, hari nath <[hidden email]> wrote:
i just added throw external jars.


On Fri, Dec 20, 2013 at 12:49 PM, Krishnan Mahadevan <[hidden email]> wrote:
You are having a clear cut problem of missing jars in your class path.

How have you added up the selenium jars in your classpath ? Is this a maven project ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:46 PM, hari nath <[hidden email]> wrote:
Every thing is correct................

On Friday, December 20, 2013 11:57:15 AM UTC+5:30, hari nath wrote:
HI ALL,

When i execute my login code it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("https://www.google.co.in");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at Goto.login.main(login.java:9)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Thanks & Regards
   HARINATH.S

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

hari nath
1.selenium-java-2.39.0
2.selenium-java-2.39.0.jar
   selenium-java-2.39.0-srcs.jar and am using firefox 24.0


On Fri, Dec 20, 2013 at 12:55 PM, Krishnan Mahadevan <[hidden email]> wrote:
Hari
Responding back with bits and pieces of information only delays the process of you getting a helpful answer.

So lets start from the scratch:

What version of Selenium are you working with ?
What are all the jars that you downloaded and added to your classpath ?

Please add as much context as possible to your question to help you get a speedy answer.





Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:54 PM, hari nath <[hidden email]> wrote:
i just added throw external jars.


On Fri, Dec 20, 2013 at 12:49 PM, Krishnan Mahadevan <[hidden email]> wrote:
You are having a clear cut problem of missing jars in your class path.

How have you added up the selenium jars in your classpath ? Is this a maven project ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:46 PM, hari nath <[hidden email]> wrote:
Every thing is correct................

On Friday, December 20, 2013 11:57:15 AM UTC+5:30, hari nath wrote:
HI ALL,

When i execute my login code it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("https://www.google.co.in");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at Goto.login.main(login.java:9)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Thanks & Regards
   HARINATH.S

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Thanks & Regards
   HARINATH.S

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DSOSsQ5MQJ4Ast12P%2B7mPnAiTy3NVzJ9y4xh2OA8ps3Jg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

KvaSOOn
I've got a same problem! My code throws an exception NoClassDefFoundError when I'm creating WebDriver object, i was running Selenium 2.35.jar that was ok, but now I need new Selenium 2.39 cause of new Firefox that came out... I had add selenium2.39.jar as external library, but I'm still recieving this error...

Dne pátek, 20. prosince 2013 8:37:54 UTC+1 hari nath napsal(a):
1.selenium-java-2.39.0
2.selenium-java-2.39.0.jar
   selenium-java-2.39.0-srcs.jar and am using firefox 24.0


On Fri, Dec 20, 2013 at 12:55 PM, Krishnan Mahadevan <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">krishnan.ma...@gmail.com> wrote:
Hari
Responding back with bits and pieces of information only delays the process of you getting a helpful answer.

So lets start from the scratch:

What version of Selenium are you working with ?
What are all the jars that you downloaded and added to your classpath ?

Please add as much context as possible to your question to help you get a speedy answer.





Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;">http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:54 PM, hari nath <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">hari.sa...@...> wrote:
i just added throw external jars.


On Fri, Dec 20, 2013 at 12:49 PM, Krishnan Mahadevan <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">krishnan.ma...@gmail.com> wrote:
You are having a clear cut problem of missing jars in your class path.

How have you added up the selenium jars in your classpath ? Is this a maven project ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;">http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:46 PM, hari nath <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">hari.sa...@...> wrote:
Every thing is correct................

On Friday, December 20, 2013 11:57:15 AM UTC+5:30, hari nath wrote:
HI ALL,

When i execute my login code it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("<a href="https://www.google.co.in" target="_blank" onmousedown="this.href='https://www.google.co.in';return true;" onclick="this.href='https://www.google.co.in';return true;">https://www.google.co.in");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at Goto.login.main(login.java:9)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com';return true;">https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com';return true;">https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.



--
Thanks & Regards
   HARINATH.S

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com';return true;">https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="qG5Ujq_izRIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com';return true;">https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.



--
Thanks & Regards
   HARINATH.S

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fe55554a-1b74-4385-98e4-3190b81f8924%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

KvaSOOn
Solved, you have to use selenium-server-standalone-2.39.0...

Dne čtvrtek, 16. ledna 2014 17:45:33 UTC+1 KvaSOOn napsal(a):
I've got a same problem! My code throws an exception NoClassDefFoundError when I'm creating WebDriver object, i was running Selenium 2.35.jar that was ok, but now I need new Selenium 2.39 cause of new Firefox that came out... I had add selenium2.39.jar as external library, but I'm still recieving this error...

Dne pátek, 20. prosince 2013 8:37:54 UTC+1 hari nath napsal(a):
1.selenium-java-2.39.0
2.selenium-java-2.39.0.jar
   selenium-java-2.39.0-srcs.jar and am using firefox 24.0


On Fri, Dec 20, 2013 at 12:55 PM, Krishnan Mahadevan <[hidden email]> wrote:
Hari
Responding back with bits and pieces of information only delays the process of you getting a helpful answer.

So lets start from the scratch:

What version of Selenium are you working with ?
What are all the jars that you downloaded and added to your classpath ?

Please add as much context as possible to your question to help you get a speedy answer.





Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;">http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:54 PM, hari nath <[hidden email]> wrote:
i just added throw external jars.


On Fri, Dec 20, 2013 at 12:49 PM, Krishnan Mahadevan <[hidden email]> wrote:
You are having a clear cut problem of missing jars in your class path.

How have you added up the selenium jars in your classpath ? Is this a maven project ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;">http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:46 PM, hari nath <[hidden email]> wrote:
Every thing is correct................

On Friday, December 20, 2013 11:57:15 AM UTC+5:30, hari nath wrote:
HI ALL,

When i execute my login code it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("<a href="https://www.google.co.in" target="_blank" onmousedown="this.href='https://www.google.co.in';return true;" onclick="this.href='https://www.google.co.in';return true;">https://www.google.co.in");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at Goto.login.main(login.java:9)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com';return true;">https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com';return true;">https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.



--
Thanks & Regards
   HARINATH.S

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com';return true;">https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com';return true;">https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.



--
Thanks & Regards
   HARINATH.S

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/caef0fec-0a72-4f50-9315-fc36ffb60fb3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

vamsi476
Hi guys,

I too got the same problem.. Finally solved it by adding "selenium-server-standalone-2.41.0.jar"

Thanks for the help.. :)

On Monday, 20 January 2014 17:31:46 UTC+5:30, KvaSOOn wrote:
Solved, you have to use selenium-server-standalone-2.39.0...

Dne čtvrtek, 16. ledna 2014 17:45:33 UTC+1 KvaSOOn napsal(a):
I've got a same problem! My code throws an exception NoClassDefFoundError when I'm creating WebDriver object, i was running Selenium 2.35.jar that was ok, but now I need new Selenium 2.39 cause of new Firefox that came out... I had add selenium2.39.jar as external library, but I'm still recieving this error...

Dne pátek, 20. prosince 2013 8:37:54 UTC+1 hari nath napsal(a):
1.selenium-java-2.39.0
2.selenium-java-2.39.0.jar
   selenium-java-2.39.0-srcs.jar and am using firefox 24.0


On Fri, Dec 20, 2013 at 12:55 PM, Krishnan Mahadevan <[hidden email]> wrote:
Hari
Responding back with bits and pieces of information only delays the process of you getting a helpful answer.

So lets start from the scratch:

What version of Selenium are you working with ?
What are all the jars that you downloaded and added to your classpath ?

Please add as much context as possible to your question to help you get a speedy answer.





Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;">http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:54 PM, hari nath <[hidden email]> wrote:
i just added throw external jars.


On Fri, Dec 20, 2013 at 12:49 PM, Krishnan Mahadevan <[hidden email]> wrote:
You are having a clear cut problem of missing jars in your class path.

How have you added up the selenium jars in your classpath ? Is this a maven project ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;">http://wakened-cognition.blogspot.com/


On Fri, Dec 20, 2013 at 12:46 PM, hari nath <[hidden email]> wrote:
Every thing is correct................

On Friday, December 20, 2013 11:57:15 AM UTC+5:30, hari nath wrote:
HI ALL,

When i execute my login code it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("<a href="https://www.google.co.in" target="_blank" onmousedown="this.href='https://www.google.co.in';return true;" onclick="this.href='https://www.google.co.in';return true;">https://www.google.co.in");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at Goto.login.main(login.java:9)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com';return true;">https://groups.google.com/d/msgid/selenium-users/afdb2420-2fd9-408b-aadd-d8e83d0df8f2%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com';return true;">https://groups.google.com/d/msgid/selenium-users/CANikZLm8hMqAwDAWbC_iEp%3Dy%3Ds2hwzv1XVrt0OkONcHPNHrkLw%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.



--
Thanks & Regards
   HARINATH.S

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com';return true;">https://groups.google.com/d/msgid/selenium-users/CAH9vF%3DQCvDgABarGaKG7cV8E0XYYWx1Z3-6xh%3DpfGJhxC0%2B8Zg%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com';return true;">https://groups.google.com/d/msgid/selenium-users/CANikZLnePAdsvFr5YsCUw-QeYyskPYQ_7Hi%2B%3DjGGkX--PRSjTw%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.



--
Thanks & Regards
   HARINATH.S

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e6c63461-28ab-4f81-8ace-961abc6d6479%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

Madiraju K Chaitanya
In reply to this post by hari nath
Hi,
I have updated the latest selenium standalone server(selenium-server-standalone-2.41.0.jar) and it resolved the problem.Thank You.

Thanks and Regards,
Chaitanya

On Friday, 20 December 2013 11:57:15 UTC+5:30, hari nath wrote:
HI ALL,

When i execute my login code it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("<a href="https://www.google.co.in" target="_blank" onmousedown="this.href='https://www.google.co.in';return true;" onclick="this.href='https://www.google.co.in';return true;">https://www.google.co.in <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAQCAYAAAGHNqTJAAAACXBIWXMAAA7DAAAOwwHHb6hkAAACr0lEQVR4nH1TS0xTQRQ9M320r7U/CoGilCCIWB4KXcjChV24wS1xRcLSpS6MJsQVK0ggoC7c6Mboho3iJ6CJG6KJ0RWihj/StCnFSin2S9v33jjv9QME8SSTO3Pn3M/ce4eA4/6MxBhBPxl9Ic3KedUvGAnI0BCos0dShPa+80o6wUA07suVyyy0sYtkvACThYBqyt2dMByuFBpbc8jvlZjc6w4X1dqejr+WIpmEWq0ZeFqtoCebqVu7qTKqyOcyoIEl9apmb3VkUciliz40PPvUy1wNBAU1WVbBQESsLkQgjE5J3V0XOuf+5FYx/yULo4lwdwzuJiOszgxUuZTNw/de5qhhCK4QWKyAxc6wvUnQdJYh/JPuhxue9D6ta0wPGAysEk5VCX6FTuxUSA9mOm8zsDEcRkwnTLyRRvw9/YOh1NtDt3XiJZB7U91OX5c/Hit8xvJcAu0+uy4pJWjrskEwmoVYdO9jxWrla0KXLZ0iFKUAwe4iVJELFQLjeTpqKNKJPEStI5vB1GONUCZpT0zuqogEFF2nJzn6/JzibspT/AO6MvN9qSoaFlD2VF6xLcN+sTRoc+K4KD2pqzk94Gvrg0mw/cupjoKSxWLwHQLh+f1iTkxLvWKVddonXaFbmQ9gUI91UIaBmLC+GC1mMv7K+6jZI10X7Rlk5WipbGld2qoFiGaK35t5/Uy4xakWERabQT8HljMQxqak2TMtXn+OriO1dzR6Mi7zVdzXNhh4uTVjldejyGVc8EqRm2sbC3NuDyghR3wUs3Hy6nLb7YiCeFSBUQTqPUWyyp3QO9d+fKOKsSa0hq1sSsbBPprMjP8wGc5amT9J4c1mfCKALH9pmadlcij28GTHiMmsDLrqczguq4PQRz0o4ghVa7OxveMWH/u7KH3r/yDGGLvxF30tKs+p7Df9AAAAAElFTkSuQmCC" );width:12px;="">  <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAQCAYAAAGHNqTJAAAACXBIWXMAAA7DAAAOwwHHb6hkAAACr0lEQVR4nH1TS0xTQRQ9M320r7U/CoGilCCIWB4KXcjChV24wS1xRcLSpS6MJsQVK0ggoC7c6Mboho3iJ6CJG6KJ0RWihj/StCnFSin2S9v33jjv9QME8SSTO3Pn3M/ce4eA4/6MxBhBPxl9Ic3KedUvGAnI0BCos0dShPa+80o6wUA07suVyyy0sYtkvACThYBqyt2dMByuFBpbc8jvlZjc6w4X1dqejr+WIpmEWq0ZeFqtoCebqVu7qTKqyOcyoIEl9apmb3VkUciliz40PPvUy1wNBAU1WVbBQESsLkQgjE5J3V0XOuf+5FYx/yULo4lwdwzuJiOszgxUuZTNw/de5qhhCK4QWKyAxc6wvUnQdJYh/JPuhxue9D6ta0wPGAysEk5VCX6FTuxUSA9mOm8zsDEcRkwnTLyRRvw9/YOh1NtDt3XiJZB7U91OX5c/Hit8xvJcAu0+uy4pJWjrskEwmoVYdO9jxWrla0KXLZ0iFKUAwe4iVJELFQLjeTpqKNKJPEStI5vB1GONUCZpT0zuqogEFF2nJzn6/JzibspT/AO6MvN9qSoaFlD2VF6xLcN+sTRoc+K4KD2pqzk94Gvrg0mw/cupjoKSxWLwHQLh+f1iTkxLvWKVddonXaFbmQ9gUI91UIaBmLC+GC1mMv7K+6jZI10X7Rlk5WipbGld2qoFiGaK35t5/Uy4xakWERabQT8HljMQxqak2TMtXn+OriO1dzR6Mi7zVdzXNhh4uTVjldejyGVc8EqRm2sbC3NuDyghR3wUs3Hy6nLb7YiCeFSBUQTqPUWyyp3QO9d+fKOKsSa0hq1sSsbBPprMjP8wGc5amT9J4c1mfCKALH9pmadlcij28GTHiMmsDLrqczguq4PQRz0o4ghVa7OxveMWH/u7KH3r/yDGGLvxF30tKs+p7Df9AAAAAElFTkSuQmCC" );width:12px;=""> ");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at Goto.login.main(login.java:9)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8f1d247d-e765-457f-99f8-21d62a7bbfe7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

Mayur kadu
hi
I have updated the latest jar file but still getting error

Please help out on this.its frustrating

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e3e7b795-acbd-4ad0-8556-3c82e809ea29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

Krishnan Mahadevan
You are the cause of your own frustrations! The root cause is very clear. You are missing a jar in your class path. What is stopping you from figuring out the correct jar and fixing the problem ? This should be pretty evident if you are conversant with Java no? If not, then stop with WebDriver and start learning Java first!

~ Krishnan

iSent. iPhone. iReget.iTypos!

On 25-Jul-2014, at 5:17, Mayur kadu <[hidden email]> wrote:

hi
I have updated the latest jar file but still getting error

Please help out on this.its frustrating

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e3e7b795-acbd-4ad0-8556-3c82e809ea29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/BAF95878-2390-4DAA-82A2-57CCEC4223F0%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

Mayur kadu

Yup i have already added the correrct jar files in classpath.

On Thursday, 24 July 2014 20:42:53 UTC-7, Krishnan wrote:
You are the cause of your own frustrations! The root cause is very clear. You are missing a jar in your class path. What is stopping you from figuring out the correct jar and fixing the problem ? This should be pretty evident if you are conversant with Java no? If not, then stop with WebDriver and start learning Java first!

~ Krishnan

iSent. iPhone. iReget.iTypos!

On 25-Jul-2014, at 5:17, Mayur kadu <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="7ntfiaEvJqUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">mayur...@...> wrote:

hi
I have updated the latest jar file but still getting error

Please help out on this.its frustrating

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="7ntfiaEvJqUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="7ntfiaEvJqUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/e3e7b795-acbd-4ad0-8556-3c82e809ea29%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/e3e7b795-acbd-4ad0-8556-3c82e809ea29%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/e3e7b795-acbd-4ad0-8556-3c82e809ea29%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;">https://groups.google.com/d/msgid/selenium-users/e3e7b795-acbd-4ad0-8556-3c82e809ea29%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/420e34cb-627a-4c61-b78f-1e0d5c764995%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

Liangjun
In reply to this post by hari nath
I met the same problem and fail even after installing the 'selenium-server-standalone-version.jar', I think you need to install the guava and guava-gwt jar (https://code.google.com/p/guava-libraries/) as well. I added all of these jar, and finally it worked in my PC. Hope it works for others facing this issue.


On Friday, December 20, 2013 1:27:15 AM UTC-5, hari nath wrote:
HI ALL,

When i execute my login code it showing the below error.plz help me 
my code is...

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class login {
public static void main(String[] args) throws Exception {
            WebDriver driver = new FirefoxDriver();
            driver.get("<a href="https://www.google.co.in" target="_blank" onmousedown="this.href='https://www.google.co.in';return true;" onclick="this.href='https://www.google.co.in';return true;">https://www.google.co.in");
}
}

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at Goto.login.main(login.java:9)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5e288b8c-cbd0-40b8-984e-6fa0b1217fa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

Sudheer
Just registered to post the solution that worked for me for the mentioned problem

When you add the selenuim external jars, also add the jars that came along with the selenium jars that exist in the libs folder - F:\selenium-2.45.0\libs

This works!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function at Goto.

Michael Peterson
In reply to this post by Krishnan Mahadevan
There are many different levels of Java people in this world, and your comment below is not acceptable for helping others learn.  
Your comment, being from 2014,,,is iPainful. 

On Thursday, July 24, 2014 at 8:42:53 PM UTC-7, Krishnan wrote:
You are the cause of your own frustrations! The root cause is very clear. You are missing a jar in your class path. What is stopping you from figuring out the correct jar and fixing the problem ? This should be pretty evident if you are conversant with Java no? If not, then stop with WebDriver and start learning Java first!

~ Krishnan

iSent. iPhone. iReget.iTypos!

On 25-Jul-2014, at 5:17, Mayur kadu <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="7ntfiaEvJqUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mayur...@...> wrote:

hi
I have updated the latest jar file but still getting error

Please help out on this.its frustrating

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="7ntfiaEvJqUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="7ntfiaEvJqUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/e3e7b795-acbd-4ad0-8556-3c82e809ea29%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/e3e7b795-acbd-4ad0-8556-3c82e809ea29%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/e3e7b795-acbd-4ad0-8556-3c82e809ea29%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/e3e7b795-acbd-4ad0-8556-3c82e809ea29%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b6cb45d3-2186-4e86-8a8a-05bc6d41cc82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...