Comments (3)
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.
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.
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)
- protoc supports negative numbers for default values HOT 1
- It is possible to compile .proto files for C++ within a C++ project? HOT 6
- Pliki są generowane w katalogu $PROJECT/build a nie w $PROJECT/src HOT 8
- Project pane context menus for .proto files are missing normal Netbeans options (eg Delete, Rename, Properties etc) HOT 1
- Enum definitions outside of message declared as errors HOT 5
- Unable to install Protobuff Editor on NetBeans 6.9M1 HOT 3
- 2.1.0 Does not install in Netbeans 6.8 HOT 1
- 2.1.0 requires libraries that are *newer* than those provided in official NB 6.9! HOT 4
- NetBeans 6.9.1 is not able to find template plugin HOT 1
- Integrate with Maven projects
- Regenerate for single file needs more config options
- "Regenerate files from ..." places java files in the test source directory HOT 1
- Does not accept 0 as enum attribute tag
- Editing a .proto file often hangs Netbeans 7.0
- No error report when a proto file has errors in it
- Please support netbeans 7.1 and protobuf 2.4.x
- Not able to find ProtobufTemplates
- I don't see protobuf tab in my C++ project
- cant install on NetBeans 8 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf-netbeans-plugin.