Question on setting netty dev environment using IntelliJ.

449 views
Skip to first unread message

Ming

unread,
Jul 13, 2016, 5:40:26 PM7/13/16
to Netty discussions
Hi,

I am new to netty, and want to set up a netty dev environment using IntelliJ, and would like to try the examples. I am using IntelliJ Ultimate 14, JDK 1.7, and Mac El Capitan. I have no problem working on other projects.

Simply what I did is:
1. git clone g...@github.com:netty/netty.git
2. In IntelliJ File-Open-pom.xml in the netty folder. (I also tried to directly open netty folder, which produced the same error).
3. Go to one example (netty/example/src/main/java/io/netty/example/proxy/HexDumpProxy.java), right click and run it.

Then I got a number of error msgs (see below). 
May I know if there is anything wrong in the setting?

Thanks,
Ming

Error messages

Error:(21, 32) java: package io.netty.util.collection does not exist
Error:(22, 32) java: package io.netty.util.collection does not exist
Error:(79, 13) java: cannot find symbol
  symbol:   class LongObjectMap
  location: class io.netty.handler.codec.redis.FixedRedisMessagePool
Error:(80, 13) java: cannot find symbol
  symbol:   class LongObjectMap
  location: class io.netty.handler.codec.redis.FixedRedisMessagePool
Warning:(89, 35) java: unmodifiableBuffer(io.netty.buffer.ByteBuf) in io.netty.buffer.Unpooled has been deprecated
Warning:(99, 35) java: unmodifiableBuffer(io.netty.buffer.ByteBuf) in io.netty.buffer.Unpooled has been deprecated
Error:(107, 30) java: cannot find symbol
  symbol:   class LongObjectHashMap
  location: class io.netty.handler.codec.redis.FixedRedisMessagePool
Error:(108, 30) java: cannot find symbol
  symbol:   class LongObjectHashMap
  location: class io.netty.handler.codec.redis.FixedRedisMessagePool
Warning:(111, 42) java: unmodifiableBuffer(io.netty.buffer.ByteBuf) in io.netty.buffer.Unpooled has been deprecated

Norman Maurer

unread,
Jul 14, 2016, 12:46:58 AM7/14/16
to ne...@googlegroups.com
Run mvn compile in the common sub-project first. These classes are generated.


--
You received this message because you are subscribed to the Google Groups "Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netty+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netty/7baed4d4-45fe-48a6-8a70-0babe7d676fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ming Xia

unread,
Jul 14, 2016, 3:25:16 AM7/14/16
to ne...@googlegroups.com
Norman, thanks for your reply. I did mvn compile in the common sub project, and seems those error msgs are gone, so your solution works!

However, it pops up new errors when I was trying to run the examples. This time it seems to be redis related. I did went to sub projects such as handler and codec-redis and also the netty top folder and run mvn compile, the error msg still remains. I also tried to convert the project to a gradle project by running gradle init in the netty top folder, but it does not help. Any suggestion to fix this?

Thanks,
Ming

Error message

/Users/mxia/study/opensource/netty/example/src/main/java/io/netty/example/redis/RedisClient.java
Error:(27, 36) java: package io.netty.handler.codec.redis does not exist
Error:(28, 36) java: package io.netty.handler.codec.redis does not exist
Error:(29, 36) java: package io.netty.handler.codec.redis does not exist
Error:(30, 36) java: package io.netty.handler.codec.redis does not exist
Error:(53, 36) java: cannot find symbol
  symbol: class RedisDecoder
Error:(54, 36) java: cannot find symbol
  symbol: class RedisBulkStringAggregator
Error:(55, 36) java: cannot find symbol
  symbol: class RedisArrayAggregator
Error:(56, 36) java: cannot find symbol
  symbol: class RedisEncoder
/Users/mxia/study/opensource/netty/example/src/main/java/io/netty/example/redis/RedisClientHandler.java
Error:(24, 36) java: package io.netty.handler.codec.redis does not exist
Error:(25, 36) java: package io.netty.handler.codec.redis does not exist
Error:(26, 36) java: package io.netty.handler.codec.redis does not exist
Error:(27, 36) java: package io.netty.handler.codec.redis does not exist
Error:(28, 36) java: package io.netty.handler.codec.redis does not exist
Error:(29, 36) java: package io.netty.handler.codec.redis does not exist
Error:(66, 54) java: cannot find symbol
  symbol:   class RedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(84, 37) java: cannot find symbol
  symbol:   class FullBulkStringRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(44, 14) java: cannot find symbol
  symbol:   class RedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(44, 53) java: cannot find symbol
  symbol:   class RedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(46, 30) java: cannot find symbol
  symbol:   class FullBulkStringRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(48, 9) java: cannot find symbol
  symbol:   class RedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(48, 36) java: cannot find symbol
  symbol:   class ArrayRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(54, 9) java: cannot find symbol
  symbol:   class RedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(54, 38) java: cannot find symbol
  symbol:   class RedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(67, 28) java: cannot find symbol
  symbol:   class SimpleStringRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(68, 34) java: cannot find symbol
  symbol:   class SimpleStringRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(69, 35) java: cannot find symbol
  symbol:   class ErrorRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(70, 34) java: cannot find symbol
  symbol:   class ErrorRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(71, 35) java: cannot find symbol
  symbol:   class IntegerRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(72, 34) java: cannot find symbol
  symbol:   class IntegerRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(73, 35) java: cannot find symbol
  symbol:   class FullBulkStringRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(74, 43) java: cannot find symbol
  symbol:   class FullBulkStringRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(75, 35) java: cannot find symbol
  symbol:   class ArrayRedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(76, 18) java: cannot find symbol
  symbol:   class RedisMessage
  location: class io.netty.example.redis.RedisClientHandler
Error:(76, 41) java: cannot find symbol
  symbol:   class ArrayRedisMessage
  location: class io.netty.example.redis.RedisClientHandler

--
You received this message because you are subscribed to a topic in the Google Groups "Netty discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/netty/lELvv7aylQs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to netty+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netty/92148DFB-7BD9-4BF2-9DEB-9247E1B5001E%40googlemail.com.
Reply all
Reply to author
Forward
0 new messages