[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814931#comment-16814931
 ] 

mck commented on CASSANDRA-15073:
---------------------------------

bq. After setting it, it at least builds but I still see errors in the IDE. 

How did you set the {{`JAVA8_HOME`}} variable? And did you do a {{right click 
-> Build}} on the project after the variable was set?
What files exist in {{ide/nbproject/private}} ?

bq. Reimporting did not help. 

FTR… netbeans doesn't "import" or setup a project. Everything is just about 
getting the classpath correct (netbeans just re-uses the classpath locations 
that the ant build script creates/uses). The Cassandra codebase relies on jar 
files in {{build/lib/jars/}}. And getting the classpath to a specific JDK 
version in a cross-OS friendly way is a bit awkward, hence the hack against the 
{{`JAVA8_HOME`}} variable. Running the "Build" from inside Netbeans still 
builds Cassandra using ant on the command line in the same way, but in addition 
it picks up the java8 jdk classes it needs in the cassandra classpath.

> Apache NetBeans project files
> -----------------------------
>
>                 Key: CASSANDRA-15073
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
>             Project: Cassandra
>          Issue Type: Task
>          Components: Build
>            Reporter: mck
>            Assignee: mck
>            Priority: Low
>         Attachments: netbeans-errors-2.png, netbeans-errors.png
>
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to