简体   繁体   English

在MS Windows中编译Mac OS Java文件时出错

[英]Error when compiling mac os java file in ms windows

I have a number of student with java programming assigment written using (most probabaly) Mac OS. 我有很多学生使用(最可能)Mac OS编写的Java编程知识。

The trouble here is I can't compile their code (in Windows) to see the executable output. 这里的问题是我无法编译他们的代码(在Windows中)以查看可执行文件的输出。 I have open the file and there is nothing different in it (except it is slightly bigger than the same file written in Windows). 我已经打开了文件,但没有什么不同(除了它比Windows中编写的相同文件略大)。

Can anyone tell me what is the problem here? 谁能告诉我这里是什么问题? Is the because the meta-data at the background or something else? 是因为元数据在后台还是其他?

Update ~ here is the error message that were produced 更新〜这是产生的错误消息

                                                ☺   ☺        ▲This resource

fork intentionally left blank 叉子有意留为空白

                                                                ☺   ☺

▲ ∟ ▲ → ^ me._Application.java:1: illegal character: \\0 ♣▬ ☻ Mac OS X ☻ 2 ♫░ ☻ ♫Γ ☺▲ ATTR;Ü╔ ♫Γ ╚ ☺‼ ☻ ╚ F §com.apple.quarantine ☺♫ ═ %com.apple.metadata:kMDItemWhereFroms 0000;4e893bff;Mail;40818AA2-9460-4D93- B3B8-1ED961B2F468|com.apple.mailbplist00ú☺☻♥ ►,Neil Drum-Garcia ►↑Compsci 101 Assignment 2_►Pmessage:%3CCAEKp0axAAFq4O5quHs-O69e4exN uMrjAeUU_GtoMn498Nto+ag@mail.gmail.com%3♀;V ☺☺ ♦ ⌐ ▲→→→我。_Application.java:1:非法字符:\\ 0☻Mac OS X☻2♫AT♫;AT╔;╔♫F╚com.apple。隔离%com.apple.metadata:kMDItemWhereFroms 0000; 4e893bff; Mail; 40818AA2-9460-4D93- B3B8-1ED961B2F468 |com.apple.mailbplist00ú☺☻♥ ►,Neil Drum- Garcia►↑Compsci 101分配2_►Pmessage :%3CCAEKp0axAAFq4O5quHs-O69e4exNuMrjAeUU_GtoMn498Nto+ag@mail.gmail.com%3♀; V♦♦⌐

Cheers.. 干杯..

You've probably got files in the directory labelled ._classFile.java , which are being interpreted by javac . 您可能在标有._classFile.java的目录中有文件,这些文件正在由javac解释。 They contain the resource fork information for the file when stored on a non Mac OS system. 当它们存储在非Mac OS系统上时,它们包含文件的资源派生信息。 The quick solution is to delete these files before attempting to compile the code in the directory. 快速的解决方案是在尝试编译目录中的代码之前删除这些文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM