flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Building Falcom
Date Sun, 28 Dec 2014 16:55:17 GMT
Where did you get the source for Falcon?  If the repo, make sure you are
pulling from the “develop” branch and not “master”.

On 12/28/14, 8:31 AM, "Left Right" <olegsivokon@gmail.com> wrote:

>Some more info: jflex -d
>/home/wvxvw/projects/flex-falcon/compiler/generated/src/org/apache/flex/co
>mpiler/internal/parsing/as
>-q 
>/home/wvxvw/projects/flex-falcon/compiler/src/org/apache/flex/compiler/int
>ernal/parsing/as/RawASTokenizer.lex
>--skel 
>/home/wvxvw/projects/flex-falcon/compiler/src/org/apache/flex/compiler/int
>ernal/parsing/as/skeleton.falcon
>
>The above runs just fine.
>
>I tried modifying the CLASSPATH variable to include the java_cup jars
>(there are two,
>
>/usr/share/java/java_cup.jar
>/usr/share/java/java_cup-runtime.jar
>)
>But the <jflex> task seems to ignore my changes... So, how do I make
>it add jars to the classpath?
>
>Thanks!
>
>On Sun, Dec 28, 2014 at 6:02 PM, Left Right <olegsivokon@gmail.com> wrote:
>> I figured this might be useful too:
>>
>> $ yum info java_cup
>> Loaded plugins: auto-update-debuginfo, langpacks, refresh-packagekit
>> Installed Packages
>> Name        : java_cup
>> Arch        : noarch
>> Epoch       : 1
>> Version     : 0.11a
>> Release     : 12.fc19
>> Size        : 128 k
>> Repo        : installed
>> From repo   : fedora
>> Summary     : Java source interpreter
>> URL         : http://www.cs.princeton.edu/%7Eappel/modern/java/CUP/
>> License     : MIT
>> Description : java_cup is a LALR Parser Generator for Java
>>
>> On Sun, Dec 28, 2014 at 5:57 PM, Left Right <olegsivokon@gmail.com>
>>wrote:
>>> Hello,
>>>
>>> I was wondering, what do I need to build Falcon, and if possible, on
>>>Linux :)
>>>
>>> I've got as far as this:
>>>
>>> raw.as.tokenizer:
>>>      [echo] Generating RawASTokenizer
>>>      [java] Executing
>>> 
>>>'/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.4.1.fc19.x86_64/jre/bin/ja
>>>va'
>>> with arguments:
>>>      [java] '-jar'
>>>      [java] '/usr/share/java/jflex.jar'
>>>      [java] '-d'
>>>      [java] 
>>>'/home/wvxvw/projects/flex-falcon/compiler/generated/src/org/apache/flex
>>>/compiler/internal/parsing/as'
>>>      [java] '-q'
>>>      [java] 
>>>'/home/wvxvw/projects/flex-falcon/compiler/src/org/apache/flex/compiler/
>>>internal/parsing/as/RawASTokenizer.lex'
>>>      [java] '--skel'
>>>      [java] 
>>>'/home/wvxvw/projects/flex-falcon/compiler/src/org/apache/flex/compiler/
>>>internal/parsing/as/skeleton.falcon'
>>>      [java]
>>>      [java] The ' characters around the executable and arguments are
>>>      [java] not part of the command.
>>>      [java] Exception in thread "main" java.lang.NoClassDefFoundError:
>>> java_cup/runtime/lr_parser
>>>      [java] at java.lang.Class.getDeclaredMethods0(Native Method)
>>>      [java] at 
>>>java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
>>>      [java] at java.lang.Class.getMethod0(Class.java:2774)
>>>      [java] at java.lang.Class.getMethod(Class.java:1663)
>>>      [java] at 
>>>sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
>>>      [java] at 
>>>sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
>>>      [java] Caused by: java.lang.ClassNotFoundException:
>>> java_cup.runtime.lr_parser
>>>      [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>>>      [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>>      [java] at java.security.AccessController.doPrivileged(Native
>>>Method)
>>>      [java] at 
>>>java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>>      [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>>>      [java] at 
>>>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>>      [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>>      [java] ... 6 more
>>>      [java] Java Result: 1
>>>
>>> I've no clue what java_cup/runtime/lr_parser is. This looks like some
>>> sort of misconfiguration rather than missing dependence (typically in
>>> that place one would see the name of the class which is missing).
>>>
>>> More info:
>>>
>>> $ yum info jflex
>>> Loaded plugins: auto-update-debuginfo, langpacks, refresh-packagekit
>>> Installed Packages
>>> Name        : jflex
>>> Arch        : noarch
>>> Version     : 1.4.3
>>> Release     : 13.fc19
>>> Size        : 1.2 M
>>> Repo        : installed
>>> From repo   : fedora
>>> Summary     : Fast Scanner Generator
>>> URL         : http://jflex.de/
>>> License     : GPL+
>>> Description : JFlex is a lexical analyzer generator (also known as
>>>scanner
>>>             : generator) for Java(tm), written in Java(tm). It is also
>>>a
>>>             : rewrite of the very useful tool JLex which was developed
>>>by
>>>             : Elliot Berk at Princeton University. As Vern Paxson
>>>states
>>>             : for his C/C++ tool flex: They do not share any code
>>>though.
>>>             : JFlex is designed to work together with the LALR parser
>>>             : generator CUP by Scott Hudson, and the Java modification
>>>of
>>>             : Berkeley Yacc BYacc/J by Bob Jamison. It can also be used
>>>             : together with other parser generators like ANTLR or as a
>>>             : standalone tool.
>>>
>>> $ javac -version
>>> javac 1.7.0_51
>>>
>>> Anything else I need to tell you, just let me know.  If this is
>>> important, I'm only interested in AS3 compiler, not the documentation
>>> nor the MXML part, no JavaScript etc.
>>>
>>> Thanks!
>>>
>>> Oleg

Mime
View raw message