I'm using owlapi to return the individuals of a given class. while testing the code using pizza ontology it works perfectly but when i test it on my ontology the following exception apear :  Exception in thread "main" java.lang.NoClassDefFoundError: dk/brics/automaton/BasicAutomata     at org.semanticweb.HermiT.datatypes.rdfplainliteral.RDFPlainLiteralPatternValueSpaceSubset.&lt;clinit&gt;(RDFPlainLiteralPatternValueSpaceSubset.java:49)     at org.semanticweb.HermiT.datatypes.rdfplainliteral.RDFPlainLiteralDatatypeHandler.registerPatternDatatype(RDFPlainLiteralDatatypeHandler.java:53)     at org.semanticweb.HermiT.datatypes.rdfplainliteral.RDFPlainLiteralDatatypeHandler.&lt;clinit&gt;(RDFPlainLiteralDatatypeHandler.java:45)     at org.semanticweb.HermiT.datatypes.DatatypeRegistry.&lt;clinit&gt;(DatatypeRegistry.java:44)     at org.semanticweb.HermiT.structural.OWLClausification$DataRangeConverter.visit(OWLClausification.java:744)     at org.semanticweb.owlapi.model.OWLDatatype.accept(OWLDatatype.java:141)     at org.semanticweb.HermiT.structural.OWLClausification$DataRangeConverter.convertDataRange(OWLClausification.java:730)     at org.semanticweb.HermiT.structural.OWLClausification$NormalizedAxiomClausifier.visit(OWLClausification.java:574)     at org.semanticweb.owlapi.model.OWLDataAllValuesFrom.accept(OWLDataAllValuesFrom.java:52)     at org.semanticweb.HermiT.structural.OWLClausification.clausify(OWLClausification.java:162)     at org.semanticweb.HermiT.structural.OWLClausification.preprocessAndClausify(OWLClausification.java:92)     at org.semanticweb.HermiT.Reasoner.loadOntology(Reasoner.java:210)     at org.semanticweb.HermiT.Reasoner.&lt;init&gt;(Reasoner.java:201)     at org.semanticweb.HermiT.Reasoner.&lt;init&gt;(Reasoner.java:175)     at org.semanticweb.HermiT.ReasonerFactory.createHermiTOWLReasoner(ReasonerFactory.java:51)     at org.semanticweb.HermiT.ReasonerFactory.createReasoner(ReasonerFactory.java:19)     at org.semanticweb.HermiT.ReasonerFactory.createReasoner(ReasonerFactory.java:15)     at Main.main(Main.java:40) Caused by: java.lang.ClassNotFoundException: dk.brics.automaton.BasicAutomata     at java.net.URLClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     ... 18 more   I noticed that the problem is due to dataproperties that i'm using in my ontology. (when i delete all the dataproperties it works but when i add them the error appear again)
I am getting a NoClassDefFoundError when I run my Java application.  What is typically the cause of this?
Clarification for non-answers One of my flags for "non-answer" was declined and I was wondering if I misunderstood what "non-answer" means. I saw someone post an answer that was just a block of code, with nothing in it that was even the slightest related to the question, it was just a random block of code with no explanation. Should I have not used the "not an answer" tag even though the description explicitly says that it should be used when answers "do not attempt to answer the question"? In my game, XP needed to reach the next level is Current Level × Level Threshold.  Given that, how can I get my current level from the total XP ever earned?    For example:  Level Threshold = 50 Current Level = 1   Starting at level 1, I would need (1 × 50) = 50 XP to get to level 2, and so on.  Level 1: 50 XP needed to reach level 2 Level 2: 100 more XP needed to reach level 3 Level 3: 150 more XP needed to reach level 4   In other words, the progression table is as follows:  Level 1: 0 XP to 49 XP Level 2: 50 XP to 149 XP  Level 3: 150 XP to 299 XP Level 4: 300 XP to 499 XP   If I have 300 XP, I'll just reached level 4. How can I calculate that generally? Combination with repetitions. Why does the default Object.toString() include the hashcode? I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "&lt;Regex for 'doesn't contain hede'&gt;" input   Desired output:  hoho hihi haha I have a Python module installed on my system and I'd like to be able to see what functions/classes/methods are available in it. I want to call the help function on each one. In Ruby I can do something like ClassName.methods to get a list of all the methods available on that class. Is there something similar in Python? eg. something like: from somemodule import foo print(foo.methods)  # or whatever is the correct method to call I am flying to Tbilisi, Georgia with Turkish Airline. My stay in Istanbul is 12 hours. Can I get transit visa to visit Istanbul city ?    I am from Pakistan with Oman employment visa. error: file '/grub/i386-pc/normal.mod' not found. grub rescue&gt;   What can I do? I just sit and stare at it.   I found my old netbook (Dell Inspiron 1010) which I have not used for about four years. I replaced Windows XP with Ubuntu 12.10. I used my bootable USB drive. I installed and rebooted. I got the message that normal.mod is not found.   What should I do? Type exit, reboot, or quit? Should I re-install? I have a 10 stock portfolio and considering market conditions that are on the rise when this question in being asked, a few of them did hit their 52-week high price.  I would like to call myself a long term investor and I do not like to trade so much. If I take "Buy low sell high" as gospel then this is in my opinion a good selling position.  On one hand, I think I should lock my profit because stocks don't hit a 52-week high every day, but on the other hand, there is nothing wrong with the company and it is very well positioned to go up even further.  Any suggestions? Where are my Screenshots? I pressed F2 to take a few Minecraft screenshots. Later I couldn't find them. Where are they stored on my computer? You have already activated X, but your Gemfile requires Y Is an Anti-Symmetric Relation also Reflexive? According to the definition of an Anti-Symmetric Relation if xRy and yRx then x = y  Which means, effectively, x is in relation with itself. Does this mean that anti-symmetry implies reflexive property as well? Identical coefficients estimated in Poisson vs Quasi-Poisson model When to delete your 0 vote answers? I've been in the SO community a little over a month now - and having a great time!  As I grow into a contributing citizen of stackoverflow, i'd like to ensure that i'm being responsible with my answers.   I've answered a few questions, some without upvotes, some voted on and some accepted.  I feel that after a certain period of time, 0 vote answers are probably providing more clutter than value.  Apparently, nobody has found them useful, so they probably aren't (or are poorly written). Tonight I went through and deleted my answers with 0 upvotes where some answer was accepted.  That was an easy decision.   I left my 0 vote answers where nothing was accepted yet, well, because I think they could provide the information that the OP requested.  But at some point, I think my answers might just be cluttering the issue.  So my question to you is: How do you know when it's time to delete your 0 vote answers?  Or even 1 vote answers for that matter? I am starting to see a lot of people claiming that convential current is 'wrong' because Franklin made an error when he first started investigating electrostatics, and that later scientists didn't bother correcting the mistake, but preferred to keep the 'convention' (here is a classic example: )  I always thought he didn't get it wrong. He said that current is positive in the direction that positive charge flows, and vice-versa. He of course had no way to know which side of two sticks behind rubbed actually gained or lost mass. So he wasn't wrong. What were you taught?  P.S. I can't help but feel we are lucky that he got it 'backwards', because clearly many people are confused about electrostastics (including the author of that text book!) and believe electricity has to involve electrons (an unfortunate name... why couldn't they have been named negatrons...) The link button in the post editor incorrectly escapes square brackets in inline code.  To reproduce:   Write the following MarkDown in the editor  text text `function[]` text text  Select `function[]`, press the link button (), and enter some link the result will be [`function\[\]`][1] which renders as function\[\]   This comes up very often in   when I'm linking to the documentation because the usual way to indicate that a symbol is a function in Mathematica is adding [] after it.  This is a minor thing, as it's easy to manually remove the backslashes, but it's somewhat annoying so I thought I'd mention it.    Edit by Mr.Wizard It is September 2013 and this still hasn't been fixed.  While "adding [] after it" is not presently the custom on Mathematica.SE this is still a bug and still needs to be fixed. Which of the following is also an ideal? If $U,V$ are ideals of a ring $R$, then which of the following is also an ideal of $R$?   $U+V=\{u+v\mid u\in U,v\in V\}$ $U\cdot V=\{u\cdot v\mid u\in U,v\in V\}$ $U\cap V$   My attempt: I have proved $U+V$ and $U\cap V$ are ideals of $R$.  My problem: I have problem about the second option. I think it is not ideal of $R$. If I am wrong then please prove this otherwise give one counter example to show that $U\cdot V$ is not ideal of $R$. Force "low power mode" on mac Initializing C# auto-properties AppleScript to choose item on web page Is it possible with AppleScript to choose a clickable element in a web page and click it and if so, can you give me an example?