SOLVED: NetBeans Error - Autopsy Build

Get help with module writing or platform code changes.

Moderator: carrier

SOLVED: NetBeans Error - Autopsy Build

Postby Hoyt » Sat Aug 06, 2016 4:52 pm

I'm getting a couple of errors when I build Autopsy 4.1.0 in NetBeans 8.1.

Problem #1:
-- Autopsy-Core
I
-- Source Packages
I
-- org.sleuthkit.autopsy.timeline.ui.detailview
I
-- DetailViewPane.java

Problem line:
Code: Select all
114  this.selectedEvents = new MappedList<>(getSelectedNodes(), EventNodeBase<?>::getEvent);


Error message: cannot infer type arguments for MappedList<>
reason: inferred type does not conform to upper bound(s)
inferred: ?
upper bound(s): Object

NetBeans hint: None, just a repeat of the error message.

Problem #2:
-- Email parser
I
-- Source Packages
I
-- org.sleuthkit.autopsy.thunderbirdparser
I
-- MBoxParser.java

Problem line:
Code: Select all
88  MimeConfig config = Mime.Config.custom().setMaxLineLen(-1).build();


Error message: cannot find symbol
symbol: method custom()
location: class MimeConfig
upper bound(s): Object

NetBeans hint: Split into declaration and assignment, with a choice between disabling "Split Declaration" suggestion or configuring it.

I'm not sure what to do with either of these. Any ideas or input?

Hoyt
Last edited by Hoyt on Mon Aug 22, 2016 4:27 pm, edited 1 time in total.
Hoyt
 
Posts: 61
Joined: Thu Dec 11, 2014 4:02 am
Location: Little Rock, AR

SOLVED: NetBeans Error - Autopsy Build

Postby Hoyt » Mon Aug 22, 2016 4:25 pm

This and other errors during the compile process had to do with permissions errors. I made sure to chown everything directly related to Autopsy, TSK, libewf, and AFFLIB to a user-level account beforehand to avoid these issues, but that's not enough apparently. There may be security issues with doing the chmod way anyway.

Regardless, the solution was to run NetBeans as root, which will require some envvars fiddling. I opted for doing that part in /etc/environment instead of adding a .bashrc in /root, which I'm not sure would even work since I didn't bother testing it. Once I did all that, Autopsy compiled without error. There will still be some warnings in the log. I know Basis is working on some of those, which have to do mostly with updating existing code to the IDE's currently recommended best practices/procedures.

Runtime errors? Well, that's another matter for a different thread...
Hoyt
 
Posts: 61
Joined: Thu Dec 11, 2014 4:02 am
Location: Little Rock, AR


Return to Autopsy Developers Corner

Who is online

Users browsing this forum: No registered users and 1 guest

cron