jonny91 / protoc-gen-as3

Automatically exported from code.google.com/p/protoc-gen-as3
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

plugin does not execute #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. download and build the 2.3.1 repo of protoc
2. download and extract protoc-gen-as3-0.8rc2-bin.tar.gz
3. run protoc with the following command line:
/home/orion/sandbox/orion/pb2.3.0/linux/bin/protoc --plugin=protoc-gen-
as3=/home/orion/sandbox/orion/pb2.3.0/protoc-gen-as3/dist/protoc-gen-as3 
--as3_out foo ./xs1.proto
(full paths included in case i'm doing something dumb)

What is the expected output? What do you see instead?
the result is the following error:
-----------------
/home/orion/sandbox/orion/pb2.3.0/protoc-gen-as3/dist/protoc-gen-as3: program 
not found or is not executable
--as3_out: protoc-gen-as3: Plugin failed with status code 1.
-----------------

if i remove "-e" from the first line of protoc-gen-as3,
then the error changes to:
-----------------
Exception in thread "main" java.lang.NoClassDefFoundError: 
com/netease/protocGenAs3/Main
Caused by: java.lang.ClassNotFoundException: com.netease.protocGenAs3.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
Could not find the main class: com/netease/protocGenAs3/Main. Program will exit.
--as3_out: protoc-gen-as3: Plugin failed with status code 1.
-----------------

What version of the product are you using? On what operating system?

these results are consistent on OS X (snow leopard) and on a centos linux box:
Linux version 2.6.18-164.6.1.el5 (mockbuild@builder10.centos.org)

Please provide any additional information below.

Original issue reported on code.google.com by DocOce...@gmail.com on 19 Jan 2010 at 10:37

GoogleCodeExporter commented 8 years ago
Same problem here (on WinXP) :

> protoc --as3.bat_out=as3 test.proto

Exception in thread "main" java.lang.NoClassDefFoundError: com/netease/protocGen
As3/Main
Caused by: java.lang.ClassNotFoundException: com.netease.protocGenAs3.Main
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: com/netease/protocGenAs3/Main. Program will exit.

--as3.bat_out: protoc-gen-as3.bat: Plugin failed with status code 1.

Original comment by kstruil...@gmail.com on 20 Jan 2010 at 9:54

GoogleCodeExporter commented 8 years ago

Original comment by pop.atry@gmail.com on 20 Jan 2010 at 1:28

GoogleCodeExporter commented 8 years ago
same problem here, was there any solution?

Original comment by c...@reto.dk on 8 Feb 2012 at 12:19