Giter Site home page Giter Site logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024
It seems to me that everything is OK, but you haven't turn on the right 
options. See attached images. You should turn on "Generate java sources during 
pre-compile phase". It will generate the code and put it into "Generated 
Sources" dir. 

One more hint (image 2):
Instead of sending me 'protobuf-java-2.0.3' you can add 'protobuf-2.0' library 
to your project. 

Please confirm that above steps resolved your problem.   

Original comment by [email protected] on 8 Aug 2010 at 5:23

Attachments:

from protobuf-netbeans-plugin.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024
I turned on "Generate java sources during pre-compile phase", but that did not 
fix it. If I right-click the protobuf test project (the one I sent you) and 
select "Clean and Build", I still get an error message because the protobuf 
classes are not rebuild:

init:
deps-clean:
Updating property file: 
C:\Users\thaler\Documents\NetBeansProjects\protobuftest\build\built-clean.proper
ties
Deleting directory C:\Users\thaler\Documents\NetBeansProjects\protobuftest\build
clean:
init:
deps-jar:
Created dir: C:\Users\thaler\Documents\NetBeansProjects\protobuftest\build
Updating property file: 
C:\Users\thaler\Documents\NetBeansProjects\protobuftest\build\built-jar.properti
es
Created dir: 
C:\Users\thaler\Documents\NetBeansProjects\protobuftest\build\classes
Created dir: C:\Users\thaler\Documents\NetBeansProjects\protobuftest\build\empty
Compiling 1 source file to 
C:\Users\thaler\Documents\NetBeansProjects\protobuftest\build\classes
C:\Users\thaler\Documents\NetBeansProjects\protobuftest\src\protobuftest\Main.ja
va:3: package protobuftest.proto.Person does not exist
import protobuftest.proto.Person.PersonMessage;
C:\Users\thaler\Documents\NetBeansProjects\protobuftest\src\protobuftest\Main.ja
va:11: cannot find symbol
symbol  : class PersonMessage
location: class protobuftest.Main
        final PersonMessage person = PersonMessage.newBuilder().setName("Jack Jackson").setAge(22).build();
C:\Users\thaler\Documents\NetBeansProjects\protobuftest\src\protobuftest\Main.ja
va:11: cannot find symbol
symbol  : variable PersonMessage
location: class protobuftest.Main
        final PersonMessage person = PersonMessage.newBuilder().setName("Jack Jackson").setAge(22).build();
3 errors
C:\Users\thaler\Documents\NetBeansProjects\protobuftest\nbproject\build-impl.xml
:528: The following error occurred while executing this line:
C:\Users\thaler\Documents\NetBeansProjects\protobuftest\nbproject\build-impl.xml
:261: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 1 second)

Original comment by [email protected] on 9 Aug 2010 at 8:08

Attachments:

from protobuf-netbeans-plugin.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024
Any update on this? I get the same problem. I will get around this issue by 
having my script build the required sources post-clean but this should be made 
to work.

Original comment by [email protected] on 23 Sep 2011 at 6:27

from protobuf-netbeans-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.