How to install vertx?

3,050 views
Skip to first unread message

Ant's

unread,
Apr 17, 2012, 9:06:14 AM4/17/12
to ve...@googlegroups.com
I downloaded the vertx file and I added the following lines into my ~/.bashrc file:

export VERTX_HOME=/home/anto/vertx/bin
export PATH
=${PATH}:${VERTX_HOME
}/bin
But still I can see :

vertx command not found.

If I run vertx version.

Where I'm making mistake?

Tim Fox

unread,
Apr 17, 2012, 9:22:43 AM4/17/12
to ve...@googlegroups.com
You have the bin directory in there twice, it should read:

|export VERTX_HOME=/home/anto/vertx


export PATH=${PATH}:${VERTX_HOME|}/bin


Assuming you have installed vertx in the /home/anto/vertx directory

--
Tim Fox

Vert.x - effortless polyglot asynchronous application development
http://vertx.io
twitter:@timfox

Anto Aravinth

unread,
Apr 17, 2012, 11:35:08 AM4/17/12
to ve...@googlegroups.com
I tried that but when I did this :

vertx version. 

I get the following error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/vertx/java/deploy/impl/cli/VertxMgr : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
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)
Could not find the main class: org.vertx.java.deploy.impl.cli.VertxMgr.  Program will exit.

Don't know what went wrong.

Tim Fox

unread,
Apr 17, 2012, 11:39:36 AM4/17/12
to ve...@googlegroups.com
This is because you are trying to run it with an older JDK version.

vert.x requires Java 7.

http://vertx.io/install.html "JDK. Vert.x requires JDK 1.7.0 or later. You can use the official Oracle distribution or the OpenJDK version. Make sure the JDK bin directory is on your PATH."

umenokin

unread,
May 22, 2012, 11:28:45 AM5/22/12
to vert.x
I cant call vertx directly.

For example if I will go in vert.x-1.0.final/bin derectory and type
verx version I will get vertx: command not found.
But if I go to vert.x-1.0.final and type bin/vertx or from bin
directory type sh vertx everything will run Ok.

umenokin

unread,
May 22, 2012, 11:30:40 AM5/22/12
to vert.x
Forgot to say that I use Mac OSX Lion. Thanks.

Mustafa

unread,
May 22, 2012, 11:42:32 AM5/22/12
to ve...@googlegroups.com

You have to add vertx bin directory to your path.

Cedric Gatay

unread,
May 22, 2012, 1:02:38 PM5/22/12
to ve...@googlegroups.com
Or if you have homebrew you can brew install it using my pending pull request
__
Cedric Gatay


On Tue, May 22, 2012 at 5:42 PM, Mustafa <mpa...@gmail.com> wrote:

You have to add vertx bin directory to your path.

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To post to this group, send an email to ve...@googlegroups.com.
To unsubscribe from this group, send email to vertx+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/vertx?hl=en-GB.

umenokin

unread,
May 22, 2012, 6:06:46 PM5/22/12
to vert.x
I added ../vertx/bin to path variable.

Tim Fox

unread,
May 23, 2012, 5:50:39 AM5/23/12
to ve...@googlegroups.com
You need to add the _absolute path_ of the bin directory to your path variable.

This is no different to basically every other program in existence ;)

umenokin

unread,
May 23, 2012, 8:37:06 AM5/23/12
to vert.x
Thank you Tim. I added absolute file and by ".." mean other part. But
that was not a problem. Just for some reason my mac at home
use .bash_profile instead of .profile.
Right now everything work fine. Thanks to everyone :)

swapnil

unread,
Sep 10, 2012, 6:14:51 AM9/10/12
to ve...@googlegroups.com, umen...@gmail.com

Hi umenokin ,

Its nice that u can run vertx on Mac Ox Lion. But  I am facing same problem. I am using MacOSx Mountain Lion and Java version is 

java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)

And when I am trying to run 

vertx version

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/vertx/java/deploy/impl/cli/Starter : Unsupported major.minor version 51.0

Can You tell me how can I resolved this problem?

Thanks,
swapnil

Thorsten Marx

unread,
Sep 10, 2012, 7:20:06 AM9/10/12
to ve...@googlegroups.com, umen...@gmail.com
vertx needs java 1.7 to run.

Brian Lalor

unread,
Sep 10, 2012, 7:52:28 AM9/10/12
to ve...@googlegroups.com, umen...@gmail.com
On Sep 10, 2012, at 4:14 AM, swapnil <swapnil....@gmail.com> wrote:

Can You tell me how can I resolved this problem?

You need to use Java 7.  1.6 is not supported.

Victor Benarbia

unread,
Sep 10, 2012, 12:43:11 PM9/10/12
to ve...@googlegroups.com, umen...@gmail.com
Java 7 can be installed on OSX Lion (Oracle version) or previous (Open JDK).

See oracle documentation if you are using OSX Lion :
http://docs.oracle.com/javase/7/docs/webnotes/install/index.html 

Victor

swapnil....@gmail.com

unread,
Sep 11, 2012, 2:31:29 AM9/11/12
to ve...@googlegroups.com
Do anyone know how to install vertx module manually?

i want to install vertx.web-server-v1.0 manually, as I am getting error while installing it from code.

My internet proxy is restricting to download from desired url.

So is there any way to install in manually?



Thanks and Regards,

Swapnil



--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/vertx/-/qvI41dv5aq0J.

Pid *

unread,
Sep 11, 2012, 2:52:41 AM9/11/12
to ve...@googlegroups.com


On 11 Sep 2012, at 07:31, "swapnil....@gmail.com" <swapnil....@gmail.com> wrote:

Do anyone know how to install vertx module manually?

i want to install vertx.web-server-v1.0 manually, as I am getting error while installing it from code.

My internet proxy is restricting to download from desired url.

So is there any way to install in manually?

Download it and install it locally by getting the mod.zip file from the public repo[1] and unzip it.
The directory that it unpacks to should be named correctly to just be placed in your designated mods dir.

Or you can checkout the whole vertx-mods repo and run it as a local service and jus point to that.


p

Visvendra Singh

unread,
Jul 18, 2015, 12:59:35 PM7/18/15
to ve...@googlegroups.com
I am having the same error with vert.x3 with Java7 and Java8. Any suggetion?

Tim Yates

unread,
Jul 18, 2015, 1:15:55 PM7/18/15
to ve...@googlegroups.com

It won't work with Java 7

Are you sure you're running Java 8?

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/4c335d52-1b71-405a-9cfe-1819ff9dc921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Visvendra Singh

unread,
Jul 18, 2015, 1:23:53 PM7/18/15
to ve...@googlegroups.com
Thanks for quick response.
here is what my console shows to me on- $ java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

I have also post question on stack overflow for same thing- 

Jez P

unread,
Jul 18, 2015, 1:26:27 PM7/18/15
to ve...@googlegroups.com
What's your JAVA_HOME?
Reply all
Reply to author
Forward
0 new messages