error "class file for net.openhft.lang.io.Bytes not found" while compiling chronicle queue code

53 views
Skip to first unread message

Sanjay Prabhakar

unread,
Apr 21, 2015, 5:16:41 PM4/21/15
to java-ch...@googlegroups.com
I am getting following error while trying to compile chronicle queue code in linux(2011 x86_64 x86_64 x86_64 GNU/Linux)...same code compile and run good in window 7.
 I am using java version "1.8.0_05" in linux and java version "1.8.0_40" in window 7. Appreciate any pointer
 
 javac Server.java
Server.java:36: error: cannot access Bytes
            appender.startExcerpt(1000);
                    ^
  class file for net.openhft.lang.io.Bytes not found

Peter Lawrey

unread,
Apr 21, 2015, 5:19:54 PM4/21/15
to java-ch...@googlegroups.com

Which build tools are you using? We use maven as it makes managing dependencies easier. Or you could use gradle or ant.

Are you sure the dependancy java-lang is being included?

--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sanjay Prabhakar

unread,
Apr 22, 2015, 12:04:32 PM4/22/15
to java-ch...@googlegroups.com
it says "Server.java:36: error: cannot access Bytes" ,does not seems like classpath issue.  I am using chronicle build chronicle-3.4.2.jar  and put commons-lang3-3.4.jar also in classpath did not help.   If I comment out ExcerptTailer line code is compiling without any error. Looks like something to do with java net.openhft.lang.io.Bytes class native access/permission.

Luca Burgazzoli

unread,
Apr 22, 2015, 12:48:56 PM4/22/15
to java-ch...@googlegroups.com

You need java-lang (http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22net.openhft%22%20AND%20a%3A%22lang%22) not commons-lang3

Is it in your classpath? 
--
lb

Sanjay Prabhakar

unread,
Apr 22, 2015, 4:10:55 PM4/22/15
to java-ch...@googlegroups.com
  Humm..! WORKED.   Thanks Lb.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
lb

Peter Lawrey

unread,
Apr 22, 2015, 5:02:24 PM4/22/15
to java-ch...@googlegroups.com

Chronicle depends on java-lang 6.x if you use a built tool with dependency management it will download and use the right version.

Sanjay Prabhakar

unread,
Apr 23, 2015, 11:29:58 AM4/23/15
to java-ch...@googlegroups.com
Agreed. Thanks.
Reply all
Reply to author
Forward
0 new messages